diff options
| -rw-r--r-- | lib/utils.coffee | 4 | ||||
| -rw-r--r-- | tests/dom_tests/chrome.coffee | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee index f089f89d..8d588a43 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -1,8 +1,6 @@ Utils = getCurrentVersion: -> - chrome.management.get(chrome.i18n.getMessage('@@extension_id'), (info) -> - info.version - ) + chrome.runtime.getManifest().version # Takes a dot-notation object string and call the function # that it points to with the correct value for 'this'. diff --git a/tests/dom_tests/chrome.coffee b/tests/dom_tests/chrome.coffee index c8ec9d29..71d0c572 100644 --- a/tests/dom_tests/chrome.coffee +++ b/tests/dom_tests/chrome.coffee @@ -17,4 +17,7 @@ root.chrome = { } sendMessage: -> } + runtime: { + getManifest: -> + } } |
