|
@@ -1,9 +1,10 @@
|
|
|
-const app = require('electron').app
|
|
|
+const {app} = require('electron')
|
|
|
const {createProtocolObject, registerStandardSchemes} = process.atomBinding('protocol')
|
|
|
|
|
|
exports.registerStandardSchemes = function (schemes) {
|
|
|
if (app.isReady()) {
|
|
|
- throw new Error('protocol.registerStandardSchemes should be called before app is ready')
|
|
|
+ console.warn('protocol.registerStandardSchemes should be called before app is ready')
|
|
|
+ return
|
|
|
}
|
|
|
registerStandardSchemes(schemes)
|
|
|
}
|