From efbedcd56d2f10edea834744714f72f539a193f0 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Tue, 29 May 2012 16:59:25 -0700 Subject: make utils.js work in a commonjs format. --- lib/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3