diff --git a/lib/browser/api/protocol.js b/lib/browser/api/protocol.js index 931e40e4b8c0..b146931a2b48 100644 --- a/lib/browser/api/protocol.js +++ b/lib/browser/api/protocol.js @@ -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) }