mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
chore: make crash-reporter specs not use URL module (#16840)
This commit is contained in:
2
spec/fixtures/api/crash-restart.html
vendored
2
spec/fixtures/api/crash-restart.html
vendored
@@ -2,7 +2,7 @@
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
const {port} = require('url').parse(window.location.href, true).query
|
||||
const port = (new URLSearchParams(location.search)).get('port')
|
||||
const {crashReporter, ipcRenderer} = require('electron')
|
||||
|
||||
crashReporter.start({
|
||||
|
||||
6
spec/fixtures/api/crash.html
vendored
6
spec/fixtures/api/crash.html
vendored
@@ -2,9 +2,9 @@
|
||||
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const url = require('url').parse(window.location.href, true);
|
||||
const uploadToServer = !url.query.skipUpload;
|
||||
const port = url.query.port;
|
||||
const query = new URLSearchParams(location.search)
|
||||
const port = query.get('port')
|
||||
const uploadToServer = !query.has('skipUpload')
|
||||
const {crashReporter, ipcRenderer} = require('electron');
|
||||
|
||||
crashReporter.start({
|
||||
|
||||
Reference in New Issue
Block a user