зеркало из https://github.com/electron/electron.git
chore: make crash-reporter specs not use URL module (#16840)
This commit is contained in:
Родитель
ccf46a57bc
Коммит
10607f7e86
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
Загрузка…
Ссылка в новой задаче