Fix: save and load appGroup and language in main menu

This commit is contained in:
2019-08-16 21:22:08 +09:00
parent 6e4836fff0
commit 753871c629
3 changed files with 183 additions and 258 deletions
+17
View File
@@ -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");