diff options
| author | Stephen Blott | 2014-12-21 16:07:29 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-12-21 16:07:29 +0000 |
| commit | 6f755c4cf456be3671936bd195bf56cf02f3e75f (patch) | |
| tree | 510266fd8f90f61a46d82ec119f24652037a5e25 /pages/options.coffee | |
| parent | 3aeb8517d0dd5f9a530e99db662a4945132cf436 (diff) | |
| download | vimium-6f755c4cf456be3671936bd195bf56cf02f3e75f.tar.bz2 | |
Exclusion; move exclusion HTML to separate, shared page.
Diffstat (limited to 'pages/options.coffee')
| -rw-r--r-- | pages/options.coffee | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pages/options.coffee b/pages/options.coffee index def67fd7..abbf52c6 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -294,7 +294,14 @@ initPopupPage = -> # # Initialization. document.addEventListener "DOMContentLoaded", -> - switch location.pathname - when "/pages/options.html" then initOptionsPage() - when "/pages/popup.html" then initPopupPage() + xhr = new XMLHttpRequest() + xhr.open 'GET', chrome.extension.getURL('pages/exclusions.html'), true + xhr.onreadystatechange = -> + if xhr.readyState == 4 + $("exclusionScrollBox").innerHTML = xhr.responseText + switch location.pathname + when "/pages/options.html" then initOptionsPage() + when "/pages/popup.html" then initPopupPage() + + xhr.send() |
