Last active
December 30, 2015 13:08
-
-
Save Hengjie/7833364 to your computer and use it in GitHub Desktop.
Get Google Chrome Extension's version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getVersion = -> | |
xhr = new XMLHttpRequest() | |
xhr.open "GET", chrome.extension.getURL("manifest.json"), false | |
xhr.send null | |
manifest = JSON.parse(xhr.responseText) | |
manifest.version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment