aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.coffee
diff options
context:
space:
mode:
authorPhil Crosby2013-05-07 09:53:48 -0700
committerPhil Crosby2013-05-07 09:53:48 -0700
commit6c87a84ec01a8a9f879bafafa5e7f12a2f4aaadb (patch)
treeadeb4664d835eb4612f60e430ad7a8404b4164e2 /lib/utils.coffee
parentc7180d197a88b670da694cb9502441f2edab51f0 (diff)
parent83fb220b39f599f917083a89e2760dea64382ea4 (diff)
downloadvimium-6c87a84ec01a8a9f879bafafa5e7f12a2f4aaadb.tar.bz2
Merge pull request #798 from deiga/remove-xhr-calls
Fix for travis build
Diffstat (limited to 'lib/utils.coffee')
-rw-r--r--lib/utils.coffee8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index 04f5d909..f089f89d 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -1,10 +1,8 @@
Utils =
getCurrentVersion: ->
- # Chromium #15242 will make this XHR request to access the manifest unnecessary
- manifestRequest = new XMLHttpRequest()
- manifestRequest.open("GET", chrome.extension.getURL("manifest.json"), false)
- manifestRequest.send(null)
- JSON.parse(manifestRequest.responseText).version
+ chrome.management.get(chrome.i18n.getMessage('@@extension_id'), (info) ->
+ info.version
+ )
# Takes a dot-notation object string and call the function
# that it points to with the correct value for 'this'.