mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
8 lines
196 B
JavaScript
8 lines
196 B
JavaScript
const app = require('electron').app
|
|
|
|
if (!app.isReady()) {
|
|
throw new Error('Can not initialize protocol module before app is ready')
|
|
}
|
|
|
|
module.exports = process.atomBinding('protocol').protocol
|