User:Tyrok1/monobook.js: Difference between revisions
Content added Content deleted
(Trying out "link directly to language example" script) |
(Obvious typo) |
||
Line 17: | Line 17: | ||
window.localStorage = new Array(); |
window.localStorage = new Array(); |
||
} |
} |
||
if(typeof localStorage.languageLinks = "undefined") |
if(typeof localStorage.languageLinks == "undefined") |
||
{ |
{ |
||
localStorage.languageLinks = new Array(); |
localStorage.languageLinks = new Array(); |
||
Line 127: | Line 127: | ||
//check to see if we already have link information about the current language |
//check to see if we already have link information about the current language |
||
if(localStorage.languageLinks && localStorage.languageLinks[langName]) |
if((typeof localStorage != "undefined") && (typeof localStorage.languageLinks != "undefined") && (typeof localStorage.languageLinks[langName] != "undefined")) |
||
{ |
{ |
||
//we do |
//we do |