Skip to content

Commit

Permalink
Merge pull request #296 from cwtickle/develop
Browse files Browse the repository at this point in the history
[ver5.0.3] LocalStorageのリバース設定が元に戻ってしまう問題を修正
  • Loading branch information
cwtickle committed May 18, 2019
2 parents f39af7c + 66975f2 commit 04d4cf1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/danoni_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*
* Source by tickle
* Created : 2018/10/08
* Revised : 2019/05/17
* Revised : 2019/05/18
*
* https://github.com/cwtickle/danoniplus
*/
const g_version = `Ver 5.0.2`;
const g_revisedDate = `2019/05/17`;
const g_version = `Ver 5.0.3`;
const g_revisedDate = `2019/05/18`;
const g_alphaVersion = ``;

// カスタム用バージョン (danoni_custom.js 等で指定可)
Expand Down Expand Up @@ -3758,6 +3758,10 @@ function createOptionWindow(_sprite) {
// リバース初期値設定
if (g_localKeyStorage.reverse !== undefined) {
g_stateObj.reverse = setVal(g_localKeyStorage.reverse, C_FLG_OFF, `string`);
g_reverseNum = g_reverses.findIndex(reverse => reverse === g_stateObj.reverse);
if (g_reverseNum < 0) {
g_reverseNum = 0;
}
}

// キーコンフィグ初期値設定
Expand Down

0 comments on commit 04d4cf1

Please sign in to comment.