Fix: restructing session manager, ES6 -> ES5
This commit is contained in:
@@ -35,6 +35,7 @@ class Start {
|
||||
this.makeStartButton();
|
||||
this.makeRankingButton();
|
||||
|
||||
console.log(sessionStorageManager.getMaestroAccountType());
|
||||
if(sessionStorageManager.getMaestroAccountType() >= 100) { // experience account
|
||||
this.printSampleChart();
|
||||
this.announceBox = new AnnounceBox(50, 648);
|
||||
@@ -55,11 +56,11 @@ class Start {
|
||||
sessionStorageManager.getPlayerID(),
|
||||
sessionStorageManager.getPlayingAppID(),
|
||||
(function(replyJSON) {
|
||||
sessionStorageManager.getBestRecord() = Number(replyJSON["BestRecord"]);
|
||||
sessionStorageManager.setBestRecord(Number(replyJSON["BestRecord"]));
|
||||
screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.getBestRecord());
|
||||
}).bind(this),
|
||||
(function(replyJSON) { // no data
|
||||
sessionStorageManager.getBestRecord() = 0;
|
||||
sessionStorageManager.setBestRecord(0);
|
||||
screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.getBestRecord());
|
||||
}).bind(this)
|
||||
);
|
||||
@@ -112,7 +113,7 @@ class Start {
|
||||
}
|
||||
|
||||
this.chart.printChartBaseLine();
|
||||
})
|
||||
}).bind(this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user