Skip to content

Instantly share code, notes, and snippets.

@Hengjie
Last active December 30, 2015 13:08

Revisions

  1. Hengjie revised this gist Dec 6, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    getVersion = ->
    xhr = new XMLHttpRequest()
    xhr.open "GET", chrome.extension.getURL("manifest.json"), false
    xhr.send null
    manifest = JSON.parse(xhr.responseText)
    manifest.version
    xhr = new XMLHttpRequest()
    xhr.open "GET", chrome.extension.getURL("manifest.json"), false
    xhr.send null
    manifest = JSON.parse(xhr.responseText)
    manifest.version
  2. Hengjie created this gist Dec 6, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    getVersion = ->
    xhr = new XMLHttpRequest()
    xhr.open "GET", chrome.extension.getURL("manifest.json"), false
    xhr.send null
    manifest = JSON.parse(xhr.responseText)
    manifest.version