diff options
| -rw-r--r-- | .travis.yml | 6 | ||||
| -rw-r--r-- | lib/utils.coffee | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 60c79466..6d2a9d80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,7 @@ script: "cake test" notifications: email: false branches: - only: - - master + except: + - experimental + - 1.42 + - commands 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'. |
