Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 6524a3f

Browse files
authored
Merge pull request #1586 from mahdiyeh-fs/fix_blank_page
Mahdiyeh/Fix: page from getting blank
2 parents 6789c11 + b4eb84e commit 6524a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function setupi18nTranslation(dict) {
429429
}
430430

431431
function localize(node) {
432-
if (node.className && node.className.includes('no-translation')) return;
432+
if (node && node.className && node.className.includes('no-translation')) return;
433433

434434
var c = node.childNodes ? node.childNodes : node, l = c.length, i;
435435
for( i=0; i<l; i++) {

0 commit comments

Comments
 (0)