electron/lib/browser/api/protocol.js

8 lines
196 B
JavaScript
Raw Normal View History

const app = require('electron').app
2016-01-11 18:40:23 -08:00
if (!app.isReady()) {
throw new Error('Can not initialize protocol module before app is ready')
2016-01-11 18:40:23 -08:00
}
2016-05-02 09:31:42 -07:00
module.exports = process.atomBinding('protocol').protocol