mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Added "Remember Playback Speed" option
Option to control the use of the last video's playback speed for a newly loaded video
This commit is contained in:
@@ -8,8 +8,11 @@ chrome.extension.sendMessage({}, function(response) {
|
||||
this.video = target;
|
||||
this.initializeControls();
|
||||
|
||||
chrome.storage.sync.get('speed', function(storage) {
|
||||
var speed = storage.speed ? storage.speed : '1.00';
|
||||
chrome.storage.sync.get({
|
||||
speed: '1.00',
|
||||
rememberSpeed: true
|
||||
}, function(storage) {
|
||||
var speed = storage.rememberSpeed ? storage.speed : '1.00';
|
||||
target.playbackRate = speed;
|
||||
this.speedIndicator.textContent = speed;
|
||||
}.bind(this));
|
||||
|
Reference in New Issue
Block a user