diff --git a/src/plugins/GreaseMonkey/data/values.js b/src/plugins/GreaseMonkey/data/values.js index e7a6756fe..f035a062a 100644 --- a/src/plugins/GreaseMonkey/data/values.js +++ b/src/plugins/GreaseMonkey/data/values.js @@ -8,7 +8,7 @@ function GM_deleteValue(aKey) { function GM_getValue(aKey, aDefault) { var val = localStorage.getItem("%1" + aKey) - if (null === val && 'undefined' != typeof aDefault) return aDefault; + if (null === val) return aDefault; return val; } diff --git a/src/plugins/GreaseMonkey/data/values.min.js b/src/plugins/GreaseMonkey/data/values.min.js index a26504911..a69b4c7db 100644 --- a/src/plugins/GreaseMonkey/data/values.min.js +++ b/src/plugins/GreaseMonkey/data/values.min.js @@ -1,4 +1,4 @@ -function GM_deleteValue(a){localStorage.removeItem("%1"+a)}function GM_getValue(a,b){var c=localStorage.getItem("%1"+a);return null===c&&"undefined"!=typeof b?b:c}function GM_listValues(){for(var a=[],b=0;b