mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 06:38:12 +01:00
use RegExp#test in preference to String#match
This commit is contained in:
@@ -298,7 +298,7 @@ vimperator.Options = function () //{{{
|
||||
|
||||
// work around firefox popup blocker
|
||||
var popupAllowedEvents = loadPreference("dom.popup_allowed_events", "change click dblclick mouseup reset submit");
|
||||
if (!popupAllowedEvents.match("keypress"))
|
||||
if (!/keypress/.test(popupAllowedEvents))
|
||||
storePreference("dom.popup_allowed_events", popupAllowedEvents + " keypress");
|
||||
|
||||
// TODO: shouldn't we be resetting these in destroy() as well?
|
||||
|
||||
Reference in New Issue
Block a user