[Greasemonkey] Re: function failed in 0.64
Andre
gm at andrecgn.de
Wed Jan 4 01:14:08 EST 2006
maybe I am missing something, but why don't you define GM_GETorDEFAULT when
GM_getValue(key, defaultValue);
already has that option to use a default?
The side effect of saving the default in the prefs?
Andre
From: Chris Hayes <chayes at antenna.nl>
> I think this function is not recognized.
> I have this problem probably since I upgraded to GM 0.64. Before that I
> might have (<--sorry..) had 0.61.
>
> unsafeWindow.GM_GETorDEFAULT = function(name,defaultValue){if
> (!GM_GET(name)) GM_SET(name,defaultValue); return GM_getValue(name);}
>
> (when called, i get the error: Error: GM_GETorDEFAULT is not defined )
>
>
> Should I maybe change the condition?
>
>
> Cheers,
> Chris
More information about the Greasemonkey
mailing list