#3 Minor syntax issues

This commit is contained in:
Serraniel 2020-09-20 17:46:25 +02:00
parent d14040ceb6
commit e4a7238921
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -33,7 +33,7 @@ function updateLanguageDisplay(node) {
let dubs = [];
// find subs
subCols = col.querySelectorAll('[ng-hide*="sub"]');
let subCols = col.querySelectorAll('[ng-hide*="sub"]');
subCols.forEach(element => {
let langAttr = element.attributes['ng-hide'].value;
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
@ -43,7 +43,7 @@ function updateLanguageDisplay(node) {
});
// find dubs
dubCols = col.querySelectorAll('[ng-hide*="dub"]');
let dubCols = col.querySelectorAll('[ng-hide*="dub"]');
dubCols.forEach(element => {
let langAttr = element.attributes['ng-hide'].value;
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));