Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Jun 16, 2020
1 parent a6999bb commit ee71844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions oauth.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
<head></head>
<body>
<script>
alert('ouath');
if (window.ipcRenderer) {
window.ipcRenderer.send('oauth-receiver', window.location.hash);
}
if (window.opener) {
window.opener.postMessage(window.location.hash, window.location.origin);
window.opener.postMessage(window.location.hash, '*');
}
window.close();
</script>
Expand Down
3 changes: 1 addition & 2 deletions public/oauth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
<head></head>
<body>
<script>
alert('ouath');
if (window.ipcRenderer) {
window.ipcRenderer.send('oauth-receiver', window.location.hash);
}
if (window.opener) {
window.opener.postMessage(window.location.hash, window.location.origin);
window.opener.postMessage(window.location.hash, '*');
}
window.close();
</script>
Expand Down

0 comments on commit ee71844

Please sign in to comment.