Fixed a typo in Piped Unify Settings, and added more settings
This commit is contained in:
parent
ddf88f4be6
commit
3f9f19356e
|
@ -1,12 +1,16 @@
|
|||
window.browser = window.browser || window.chrome;
|
||||
|
||||
console.log('unifying piped');
|
||||
|
||||
browser.storage.local.set(
|
||||
{
|
||||
'piped_bufferGoal': localStorage.getItem("bufferGoal"),
|
||||
'piped_comments': localStorage.getItem("comments"),
|
||||
'piped_disableLBRY': localStorage.getItem("disableLBRY"),
|
||||
'piped_enabledCodecs': localStorage.getItem("enabledCodecs"),
|
||||
'piped_hl': localStorage.getItem("hl"),
|
||||
'piped_homepage': localStorage.getItem("homepage"),
|
||||
'piped_instance': localStorage.getItem("instance"),
|
||||
'piped_listen': localStorage.getItem("listen"),
|
||||
'piped_minimizeDescription': localStorage.getItem("minimizeDescription"),
|
||||
'piped_playerAutoPlay': localStorage.getItem("playerAutoPlay"),
|
||||
|
|
|
@ -23,8 +23,10 @@ browser.storage.local.get(
|
|||
if (r.piped_bufferGoal !== undefined) localStorage.setItem("bufferGoal", r.piped_bufferGoal);
|
||||
if (r.piped_comments !== undefined) localStorage.setItem("comments", r.piped_comments);
|
||||
if (r.piped_disableLBRY !== undefined) localStorage.setItem("disableLBRY", r.piped_disableLBRY);
|
||||
if (r.piped_hl !== undefined) localStorage.setItem("hl", r.piped_hl);
|
||||
if (r.piped_enabledCodecs !== undefined) localStorage.setItem("enabledCodecs", r.piped_enabledCodecs);
|
||||
if (r.piped_homepage !== undefined) localStorage.setItem("homepage", r.piped_homepage);
|
||||
if (r.piped_instance !== undefined) localStorage.setItem("instance", r.piped_instance);
|
||||
if (r.piped_listen !== undefined) localStorage.setItem("listen", r.piped_listen);
|
||||
if (r.piped_minimizeDescription !== undefined) localStorage.setItem("minimizeDescription", r.piped_minimizeDescription);
|
||||
if (r.piped_playerAutoPlay !== undefined) localStorage.setItem("playerAutoPlay", r.piped_playerAutoPlay);
|
||||
|
|
|
@ -442,7 +442,7 @@ function initPipedLocalStorage(test, url, tabId) {
|
|||
browser.tabs.executeScript(
|
||||
tabId,
|
||||
{
|
||||
file: "/assets/javascripts/helpers/youtube/get_piped_settings.js",
|
||||
file: "/assets/javascripts/helpers/youtube/get_piped_preferences.js",
|
||||
runAt: "document_start"
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue