mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Reload after importing options
This commit is contained in:
@@ -460,9 +460,6 @@ function activatePrivateTextChange(element: HTMLElement) {
|
|||||||
}
|
}
|
||||||
Config.convertJSON();
|
Config.convertJSON();
|
||||||
|
|
||||||
// Reload options on page
|
|
||||||
init();
|
|
||||||
|
|
||||||
if (newConfig.supportInvidious) {
|
if (newConfig.supportInvidious) {
|
||||||
let checkbox = <HTMLInputElement> document.querySelector("#support-invidious > label > label > input");
|
let checkbox = <HTMLInputElement> document.querySelector("#support-invidious > label > label > input");
|
||||||
|
|
||||||
@@ -470,6 +467,8 @@ function activatePrivateTextChange(element: HTMLElement) {
|
|||||||
invidiousOnClick(checkbox, "supportInvidious");
|
invidiousOnClick(checkbox, "supportInvidious");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.location.reload();
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
alert(chrome.i18n.getMessage("incorrectlyFormattedOptions"));
|
alert(chrome.i18n.getMessage("incorrectlyFormattedOptions"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user