diff --git a/browser.js b/browser.js new file mode 100644 index 0000000..b1711e6 --- /dev/null +++ b/browser.js @@ -0,0 +1,3 @@ +module.exports = { + get: require('./get.js'); +}; diff --git a/get.js b/get.js index 5db72a1..442fe96 100644 --- a/get.js +++ b/get.js @@ -1,5 +1,3 @@ -var document = require("global/document"); - module.exports = getJSONGlobal; var globals; diff --git a/package.json b/package.json index 3c28a93..bdd4f9d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "keywords": [], "author": "Raynos ", "repository": "git://github.com/lxe/safe-json-globals.git", - "main": "index", + "main": "index.js", + "browser": "browser.js", "homepage": "https://github.com/lxe/safe-json-globals", "contributors": [ { @@ -21,7 +22,6 @@ "email": "lxe@lxe.co" }, "dependencies": { - "global": "~4.3.0", "serialize-javascript": "^1.1.2" }, "devDependencies": {