aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-10-29 09:22:26 +0000
committerStephen Blott2017-10-29 09:22:28 +0000
commit75c229d5bda9529baee1993c74ac16c777f68000 (patch)
treee8dc604a07a4419afaf728831d129bc1584d1c7b
parentf40a0e697c6d4f88bc4ccd410951339f86a609d6 (diff)
downloadvimium-75c229d5bda9529baee1993c74ac16c777f68000.tar.bz2
Tidy up backup code.
This can be shorter now.
-rw-r--r--pages/options.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/pages/options.coffee b/pages/options.coffee
index 83c96339..65838203 100644
--- a/pages/options.coffee
+++ b/pages/options.coffee
@@ -340,9 +340,7 @@ DomUtils?.documentReady ->
# Create the blob in the background page so it isn't garbage collected when the page closes in FF.
bgWin = chrome.extension.getBackgroundPage()
blob = new bgWin.Blob [ JSON.stringify backup, null, 2 ]
- url = bgWin.URL.createObjectURL blob
- a = $ "backupLink"
- a.href = url
+ $("backupLink").href = bgWin.URL.createObjectURL blob
$("backupLink").addEventListener "mousedown", populateBackupLinkUrl, true