Skip to content

Commit

Permalink
Update eet-lang.js
Browse files Browse the repository at this point in the history
Checking if the settings exists
  • Loading branch information
ishahrier authored Sep 13, 2018
1 parent 5cc92aa commit db699bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eet-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(document).ready(function($){
var BasePath = 'https://anontech.github.io';


if(_EETJsonSettings.ShowLanguage){ //true
if(typeof _EETJsonSettings!=='undefined' && _EETJsonSettings.ShowLanguage){ //true

if(!$("#exico_translator_element").length){ //if not user preset
$("head").before('<div id="exico_translator_element" class="'+_EETJsonSettings.Position+'"></div>');
Expand Down Expand Up @@ -41,4 +41,4 @@ $(document).ready(function($){
document.getElementsByTagName('head')[0].appendChild(script);
}

});
});

0 comments on commit db699bd

Please sign in to comment.