#32 Fixed wrong implementation of settings check for language display
This commit is contained in:
parent
483ea7f96e
commit
51b943bc0f
|
@ -5,14 +5,12 @@ import * as helper from '../utils/helpers';
|
||||||
export function init() {
|
export function init() {
|
||||||
getGlobalConfiguration().getProperty(SETTINGS_animeLanguageDisplay, value => {
|
getGlobalConfiguration().getProperty(SETTINGS_animeLanguageDisplay, value => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (getGlobalConfiguration().animeLanguageDisplay) {
|
core.registerScript(node => {
|
||||||
core.registerScript(node => {
|
// run the scripts
|
||||||
// run the scripts
|
if (helper.isHtmlElement(node)) {
|
||||||
if (helper.isHtmlElement(node)) {
|
updateLanguageDisplay(node)
|
||||||
updateLanguageDisplay(node)
|
}
|
||||||
}
|
}, "^/anime/[0-9]*$");
|
||||||
}, "^/anime/[0-9]*$");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue