Interop local storage APIs should be generic

This commit is contained in:
hishamco
2020-12-03 13:37:18 +03:00
parent fa3cc48fd0
commit 1b3cc2c44e
4 changed files with 12 additions and 12 deletions

View File

@ -363,10 +363,10 @@ Oqtane.Interop = {
window.location.href = url;
}, wait * 1000);
},
getCulture: function () {
return window.localStorage['OqtaneCulture'];
getLocalStorage: function (name) {
return window.localStorage[name];
},
setCulture: function (culture) {
window.localStorage['OqtaneCulture'] = culture;
setLocalStorage: function (name, value) {
window.localStorage[name] = value;
}
};