diff --git a/bin/mapshaper-gui b/bin/mapshaper-gui index fa16edbcb..7ae3d2eae 100755 --- a/bin/mapshaper-gui +++ b/bin/mapshaper-gui @@ -5,7 +5,7 @@ var http = require("http"), url = require("url"), fs = require("fs"), Cookies = require("cookies"), - open = require("open"), + opn = require("opn"), optimist = require("optimist"), defaultPort = 5555, webRoot = path.join(__dirname, "../www"), @@ -101,7 +101,7 @@ function startServer(port) { serveFile(path.join(webRoot, uri), response); } }).listen(port, function() { - open("http://localhost:" + port); + opn("http://localhost:" + port); }); } diff --git a/package.json b/package.json index 0ef1752d5..cd7292a15 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "d3-dsv": "~1.0.8", "iconv-lite": "0.4.19", "mproj": "0.0.16", - "open": "~0.0.5", + "opn": "^5.3.0", "optimist": "~0.6.0", "rbush": "~2.0.1", "rw": "~1.3.3" @@ -44,7 +44,7 @@ "deep-eql": ">=0.1.3", "catty": "0.0.6", "browserify": "~14.4.0", - "underscore": "^1.9.0" + "underscore": "^1.9.0" }, "bin": { "mapshaper": "./bin/mapshaper",