-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* globals chrome */ | ||
import { computed } from '@ember/object'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="./panes-3-16-0/assets/ember-inspector.css"> | ||
<link rel="stylesheet" href="./panes-3-16-0/assets/vendor.css"> | ||
</head> | ||
<body class='theme--light'> | ||
<div class="error-page box-border overflow-auto absolute inset-0 flex text-base13 text-md bg-base02"> | ||
<div class="error-page__content box-border relative m-auto px-6 pb-6 rounded bg-base00" style='border: 1px solid orangered'> | ||
<div class="error-page__header overflow-hidden relative flex items-center font-bold text-4xl"> | ||
<div class="flex-grow pt-6"> | ||
<br /> | ||
Request permission to enable ember inspector | ||
<img style='position: absolute; right: 0; top: 0' src='./panes-3-16-0/assets/images/icon48.png'/> | ||
<br /> | ||
<br /> | ||
</div> | ||
</div> | ||
|
||
<div class="error-page__body pb-2"> | ||
<button style='padding: 5px' id='request-all'>request permission for all sites</button> | ||
<br /> | ||
<br /> | ||
<button style='padding: 5px' id='request-one'>request permission for </button> | ||
<br /> | ||
<br /> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
<script src='./request.js'></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
document.getElementById('request-all').addEventListener('click', async () => { | ||
await chrome.permissions.request({origins: ['<all_urls>']}); | ||
window.close() | ||
}) | ||
|
||
const url = new URL(window.location); | ||
const tabOrigin = url.searchParams.get('tabOrigin'); | ||
document.getElementById('request-one').innerText += ' ' + tabOrigin; | ||
|
||
document.getElementById('request-one').addEventListener('click', async () => { | ||
await chrome.permissions.request({origins: [tabOrigin + '/*']}); | ||
window.close() | ||
}) |