Skip to content

Commit

Permalink
chore: make crash-reporter specs not use URL module (#16850)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and MarshallOfSound committed Feb 8, 2019
1 parent 91a67e4 commit c65e907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/fixtures/api/crash-restart.html
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions spec/fixtures/api/crash.html
Expand Up @@ -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({
Expand Down

0 comments on commit c65e907

Please sign in to comment.