Skip to content

Commit

Permalink
oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Jun 16, 2020
1 parent 5e24ce8 commit 6eb5adb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions oauth.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- completely unrelated to this project. copy to public folder after build to enable oauth for trezor
suite labeling -->

<html>
<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.close();
</script>
</body>
</html>
18 changes: 18 additions & 0 deletions public/oauth.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- completely unrelated to this project. copy to public folder after build to enable oauth for trezor
suite labeling -->

<html>
<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.close();
</script>
</body>
</html>

0 comments on commit 6eb5adb

Please sign in to comment.