Skip to content

Commit

Permalink
Changed open package to opn, fixes mbloch#282
Browse files Browse the repository at this point in the history
  • Loading branch information
Joona Laamanen committed May 29, 2018
1 parent d87a8cb commit b044ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/mapshaper-gui
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -101,7 +101,7 @@ function startServer(port) {
serveFile(path.join(webRoot, uri), response);
}
}).listen(port, function() {
open("http://localhost:" + port);
opn("http://localhost:" + port);
});
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit b044ff2

Please sign in to comment.