mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-19 01:01:54 +03:00
15 lines
504 B
JavaScript
15 lines
504 B
JavaScript
const { app, protocol } = require('electron');
|
|
const path = require('path');
|
|
|
|
app.commandLine.appendSwitch('disable-features', 'AutoExpandDetailsElement');
|
|
app.commandLine.appendSwitch('allow-pre-commit-input')
|
|
|
|
app.on('window-all-closed', e => e.preventDefault());
|
|
|
|
app.whenReady().then(() => {
|
|
protocol.registerFileProtocol('vscode-file', (request, callback) => {
|
|
const url = request.url.substring('vscode-file'.length + 3);
|
|
callback({ path: path.join(__dirname, 'assets', url) });
|
|
});
|
|
});
|