#32 Fixed wrong implementation of settings check for language display

This commit is contained in:
Serraniel 2020-11-08 13:25:55 +01:00
parent 483ea7f96e
commit 51b943bc0f
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -5,7 +5,6 @@ import * as helper from '../utils/helpers';
export function init() {
getGlobalConfiguration().getProperty(SETTINGS_animeLanguageDisplay, value => {
if (value) {
if (getGlobalConfiguration().animeLanguageDisplay) {
core.registerScript(node => {
// run the scripts
if (helper.isHtmlElement(node)) {
@ -13,7 +12,6 @@ export function init() {
}
}, "^/anime/[0-9]*$");
}
}
});
}