mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fixes platform support
This commit is contained in:
parent
83757dc8af
commit
beb19dc096
3 changed files with 9 additions and 8 deletions
9
index.js
9
index.js
|
|
@ -1,3 +1,10 @@
|
||||||
const { setup } = require('bindings')('electron_drag_click.node');
|
let setup = () => {
|
||||||
|
console.warn('electron-drag-click: Unsupported platform.');
|
||||||
|
};
|
||||||
|
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
const binding = require('bindings')('electron_drag_click.node');
|
||||||
|
setup = binding.setup;
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = setup;
|
module.exports = setup;
|
||||||
|
|
|
||||||
3
package-lock.json
generated
3
package-lock.json
generated
|
|
@ -8,9 +8,6 @@
|
||||||
"name": "electron-drag-click",
|
"name": "electron-drag-click",
|
||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"os": [
|
|
||||||
"darwin"
|
|
||||||
],
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bindings": "^1.5.0",
|
"bindings": "^1.5.0",
|
||||||
"node-addon-api": "^3.0.2"
|
"node-addon-api": "^3.0.2"
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,5 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bindings": "^1.5.0",
|
"bindings": "^1.5.0",
|
||||||
"node-addon-api": "^3.0.2"
|
"node-addon-api": "^3.0.2"
|
||||||
},
|
}
|
||||||
"os": [
|
|
||||||
"darwin"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue