User:Tyrok1/monobook.js: Difference between revisions
Content added Content deleted
m (More tweaking) |
m (Testing disabling HTML5 storage) |
||
Line 8: | Line 8: | ||
function SectionLinkLoadFromStorage() |
function SectionLinkLoadFromStorage() |
||
{ |
{ |
||
if((typeof localStorage != "undefined") && (typeof localStorage.languageLinks != "undefined")) |
/*if((typeof localStorage != "undefined") && (typeof localStorage.languageLinks != "undefined")) |
||
{ |
{ |
||
window.languageLinks = JSON.parse(localStorage.languageLinks); |
window.languageLinks = JSON.parse(localStorage.languageLinks); |
||
} |
}*/ |
||
} |
} |
||
function SectionLinkSaveToStorage() |
function SectionLinkSaveToStorage() |
||
{ |
{ |
||
if((typeof localStorage != "undefined") && (typeof window.languageLinks != "undefined")) |
/*if((typeof localStorage != "undefined") && (typeof window.languageLinks != "undefined")) |
||
{ |
{ |
||
localStorage.languageLinks = JSON.stringify(window.languageLinks); |
localStorage.languageLinks = JSON.stringify(window.languageLinks); |
||
} |
}*/ |
||
} |
} |
||