Skip to content

Commit

Permalink
4.7.0 修正按键为 null 产生的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Sep 29, 2014
1 parent f9d21d1 commit 78c0c64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions MyNovelReader/MyNovelReader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @id mynovelreader@[email protected]
// @name My Novel Reader
// @name:zh-CN 小说阅读脚本
// @version 4.6.9
// @version 4.7.0
// @namespace https://github.com/ywzhaiqi
// @author ywzhaiqi
// @contributor shyangs
Expand Down Expand Up @@ -1652,7 +1652,7 @@ var Config = {
if (this._quietModeKey) {
return this._quietModeKey;
}
this._quietModeKey = GM_getValue('quietModeKey', 'q');
this._quietModeKey = GM_getValue('quietModeKey') || 'q';

return this._quietModeKey;
},
Expand All @@ -1666,7 +1666,7 @@ var Config = {
if (this._openPreferencesKey) {
return this._openPreferencesKey;
}
this._openPreferencesKey = GM_getValue('open_preferences_key', 's');
this._openPreferencesKey = GM_getValue('open_preferences_key') || 's';

return this._openPreferencesKey;
},
Expand All @@ -1681,7 +1681,7 @@ var Config = {
if (this._hideMenuListKey) {
return this._hideMenuListKey;
}
this._hideMenuListKey = GM_getValue('hide_menulist_key', 'c');
this._hideMenuListKey = GM_getValue('hide_menulist_key') || 'c';

return this._hideMenuListKey;
},
Expand Down
2 changes: 1 addition & 1 deletion MyNovelReader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MyNovelReader",
"version": "4.6.9",
"version": "4.7.0",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
Expand Down
6 changes: 3 additions & 3 deletions MyNovelReader/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ var Config = {
if (this._quietModeKey) {
return this._quietModeKey;
}
this._quietModeKey = GM_getValue('quietModeKey', 'q');
this._quietModeKey = GM_getValue('quietModeKey') || 'q';

return this._quietModeKey;
},
Expand All @@ -202,7 +202,7 @@ var Config = {
if (this._openPreferencesKey) {
return this._openPreferencesKey;
}
this._openPreferencesKey = GM_getValue('open_preferences_key', 's');
this._openPreferencesKey = GM_getValue('open_preferences_key') || 's';

return this._openPreferencesKey;
},
Expand All @@ -217,7 +217,7 @@ var Config = {
if (this._hideMenuListKey) {
return this._hideMenuListKey;
}
this._hideMenuListKey = GM_getValue('hide_menulist_key', 'c');
this._hideMenuListKey = GM_getValue('hide_menulist_key') || 'c';

return this._hideMenuListKey;
},
Expand Down

0 comments on commit 78c0c64

Please sign in to comment.