Fix: save and load appGroup and language in main menu
This commit is contained in:
@@ -60,6 +60,8 @@ function printSessionStorage() {
|
||||
console.log("record : " + sessionStorageManager.getRecord());
|
||||
console.log("appHighestRecord : " + sessionStorageManager.getAppHighestRecord());
|
||||
console.log("writingID : " + sessionStorageManager.getWritingID());
|
||||
console.log("appGroup : " + sessionStorageManager.getAppGroup());
|
||||
console.log("language : " + sessionStorageManager.getLanguage());
|
||||
}
|
||||
|
||||
function isLogin() {
|
||||
|
||||
@@ -115,6 +115,23 @@ SessionStorageManager.prototype.getWritingID = function() {
|
||||
return sessionStorage.getItem("writingID");
|
||||
}
|
||||
|
||||
// main menu
|
||||
SessionStorageManager.prototype.setAppGroup = function(value) {
|
||||
sessionStorage.setItem("appGroup", value);
|
||||
}
|
||||
SessionStorageManager.prototype.getAppGroup = function() {
|
||||
return sessionStorage.getItem("appGroup");
|
||||
}
|
||||
|
||||
SessionStorageManager.prototype.setLanguage = function(value) {
|
||||
sessionStorage.setItem("language", value);
|
||||
}
|
||||
SessionStorageManager.prototype.getLanguage = function() {
|
||||
return sessionStorage.getItem("language");
|
||||
}
|
||||
|
||||
|
||||
|
||||
SessionStorageManager.prototype.resetPlayingAppData = function() {
|
||||
this.removeItem("playingAppID");
|
||||
this.removeItem("playingAppName");
|
||||
|
||||
Reference in New Issue
Block a user