mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:26 -04:00
fix helpers storage
This commit is contained in:
parent
835237382f
commit
fd890f9c0a
3 changed files with 20 additions and 22 deletions
|
@ -432,7 +432,7 @@ function save_video_time(seconds) {
|
|||
|
||||
all_video_times[videoId] = seconds;
|
||||
|
||||
helpers.storage.set(save_player_pos_key, JSON.stringify(all_video_times));
|
||||
helpers.storage.set(save_player_pos_key, all_video_times);
|
||||
}
|
||||
|
||||
function get_video_time() {
|
||||
|
@ -444,8 +444,7 @@ function get_video_time() {
|
|||
}
|
||||
|
||||
function get_all_video_times() {
|
||||
const raw = helpers.storage.get(save_player_pos_key);
|
||||
return raw ? JSON.parse(raw) : {};
|
||||
return helpers.storage.get(save_player_pos_key) || {};
|
||||
}
|
||||
|
||||
function remove_all_video_times() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue