@lexicallayer/cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +8 -2
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -56,8 +56,14 @@ function requestJSON(url, options = {}, data = null) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
function openBrowser(url) {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
if (process.platform === "win32") {
|
|
60
|
+
// On Windows, 'start "" "url"' is required because the first quoted argument is treated as the window title
|
|
61
|
+
exec(`start "" "${url}"`);
|
|
62
|
+
} else if (process.platform === "darwin") {
|
|
63
|
+
exec(`open "${url}"`);
|
|
64
|
+
} else {
|
|
65
|
+
exec(`xdg-open "${url}"`);
|
|
66
|
+
}
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
async function calibrate() {
|