Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ver5.0.3] LocalStorageのリバース設定が元に戻ってしまう問題を修正 #296

Merged
merged 1 commit into from
May 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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