Skip to content

Commit

Permalink
Merge pull request #10 from denkiwakame/fix-permission
Browse files Browse the repository at this point in the history
limit permission + small enhancement in options
  • Loading branch information
denkiwakame authored Jan 17, 2024
2 parents 43f759c + bbcad20 commit 5c4919b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 2 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
"page": "options.html",
"open_in_tab": false
},
"permissions": ["tabs", "storage"],
"host_permissions": [
"<all_urls>",
"*://api.notion.com/*",
"*://www.notion.so/*"
],
"permissions": ["activeTab", "storage"],
"host_permissions": ["*://api.notion.com/*", "*://www.notion.so/*"],
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
}
Expand Down
14 changes: 10 additions & 4 deletions src/html/options.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head></head>
<body>
<div class="uk-container">
<div class="uk-margin uk-margin-bottom" uk-margin>
<legend class="uk-legend uk-margin-top">Notion Integration ID</legend>
<a
class="uk-form-label"
class="uk-link-text"
target="_blank"
href="https://www.notion.so/my-integrations/"
uk-tooltip="title: Get integration ID; pos:right"
>https://www.notion.so/my-integrations/</a
>
<div class="uk-inline">
<button id="js-visible-btn"
<button
id="js-visible-btn"
class="uk-form-icon uk-form-icon-flip"
uk-icon="lock"
></button>
Expand All @@ -23,7 +25,11 @@
placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
/>
</div>
<button id="js-save-btn" class="uk-icon-button uk-margin-small-left" uk-icon="plus" />
<button
id="js-save-btn"
class="uk-icon-button uk-margin-small-left"
uk-icon="plus"
/>
</div>
<div id="js-message-container"></div>
</div>
Expand Down

0 comments on commit 5c4919b

Please sign in to comment.