diff options
| author | Phil Crosby | 2012-05-29 16:59:25 -0700 | 
|---|---|---|
| committer | Phil Crosby | 2012-05-29 16:59:25 -0700 | 
| commit | efbedcd56d2f10edea834744714f72f539a193f0 (patch) | |
| tree | f03bf2f2a7c1d125237442366f9e433d553b49bf | |
| parent | 5180f2108777b50aefebdf0167b0a1c605bb784e (diff) | |
| download | vimium-efbedcd56d2f10edea834744714f72f539a193f0.tar.bz2 | |
make utils.js work in a commonjs format.
| -rw-r--r-- | lib/utils.js | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/lib/utils.js b/lib/utils.js index 9db3c91a..1babb2ec 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,4 +1,6 @@ -var utils = { +root = (typeof(exports) === "undefined") ? window : exports + +root.utils = {    getCurrentVersion: function() {      // Chromium #15242 will make this XHR request to access the manifest unnecessary.      var manifestRequest = new XMLHttpRequest(); | 
