diff options
| author | mrmr1993 | 2017-10-25 16:45:45 +0100 |
|---|---|---|
| committer | mrmr1993 | 2017-10-25 16:51:46 +0100 |
| commit | aca953e06a7cf5aa6906df677a8fb6ed3e688a03 (patch) | |
| tree | f207a026e1e8e97b718aaec98f3e8f7b530af9cf /lib/find_mode_history.coffee | |
| parent | 03569d64b445780576f960d0553dc763c807de95 (diff) | |
| download | vimium-aca953e06a7cf5aa6906df677a8fb6ed3e688a03.tar.bz2 | |
FF: Share |root| global proxy, re-add the globals to window on DOMLoad
This is a workaround for Firefox bug 1408996.
Diffstat (limited to 'lib/find_mode_history.coffee')
| -rw-r--r-- | lib/find_mode_history.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/find_mode_history.coffee b/lib/find_mode_history.coffee index ff660bd2..93698266 100644 --- a/lib/find_mode_history.coffee +++ b/lib/find_mode_history.coffee @@ -46,5 +46,6 @@ FindModeHistory = refreshRawQueryList: (query, rawQueryList) -> ([ query ].concat rawQueryList.filter (q) => q != query)[0..@max] -root = exports ? window +root = exports ? (window.root ?= {}) root.FindModeHistory = FindModeHistory +extend window, root unless exports? |
