Add: app highest record
This commit is contained in:
@@ -80,7 +80,7 @@ SessionStorageManager.prototype.setRecord = function(value) {
|
||||
sessionStorage.setItem("record", value);
|
||||
}
|
||||
SessionStorageManager.prototype.getRecord = function() {
|
||||
return sessionStorage.getItem("record");
|
||||
return Number(sessionStorage.getItem("record"));
|
||||
}
|
||||
|
||||
// best record
|
||||
@@ -88,7 +88,15 @@ SessionStorageManager.prototype.setBestRecord = function(value) {
|
||||
sessionStorage.setItem("bestRecord", value);
|
||||
}
|
||||
SessionStorageManager.prototype.getBestRecord = function() {
|
||||
return sessionStorage.getItem("bestRecord");
|
||||
return Number(sessionStorage.getItem("bestRecord"));
|
||||
}
|
||||
|
||||
// best record
|
||||
SessionStorageManager.prototype.setAppHighestRecord = function(value) {
|
||||
sessionStorage.setItem("appHighestRecord", value);
|
||||
}
|
||||
SessionStorageManager.prototype.getAppHighestRecord = function() {
|
||||
return Number(sessionStorage.getItem("appHighestRecord"));
|
||||
}
|
||||
|
||||
// best record
|
||||
@@ -105,6 +113,7 @@ SessionStorageManager.prototype.resetPlayingAppData = function() {
|
||||
this.removeItem("playingAppKoreanName");
|
||||
this.removeItem("record");
|
||||
this.removeItem("bestRecord");
|
||||
this.removeItem("appHighestRecord");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user