diff --git a/docs/js/extra.js b/docs/js/extra.js index 596fe815..665f3437 100644 --- a/docs/js/extra.js +++ b/docs/js/extra.js @@ -181,7 +181,7 @@ var nodemcu = nodemcu || {}; // path is like /en///build/ -> extract 'lang' // split[0] is an '' because the path starts with the separator selectedLanguageCode = path.split('/')[3]; - } else { + } else if (!window.location.href.startsWith('file://')) { // path is like //build/ -> extract 'lang' selectedLanguageCode = path.substr(1, 2); }