- commit
- c214d2d2d1886300504ad865827e0ee22541f0b5
- parent
- 1354c05761251fb9722789dfff38a8536ee7cc30
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-09-23 09:08
rm dialog polyfill all modern browsers now support it natively
Diffstat
| M | Makefile | 2 | -- |
| M | manifest.json | 2 | -- |
| M | outline.js | 10 | ---------- |
| M | src/outline.scss | 10 | ---------- |
4 files changed, 0 insertions, 24 deletions
diff --git a/Makefile b/Makefile
@@ -7,8 +7,6 @@ bundle.zip: manifest.json icon-128.png bg.js outline.js treeview.js outline.css 7 7 vendor: 8 8 mkdir -p vendor 9 9 wget https://raw.githubusercontent.com/xi/aria-api/0.4.2/dist/aria.js -O vendor/aria.js10 -1 wget https://raw.githubusercontent.com/GoogleChrome/dialog-polyfill/v0.5.6/dist/dialog-polyfill.js -O vendor/dialog-polyfill.js11 -1 wget https://raw.githubusercontent.com/GoogleChrome/dialog-polyfill/v0.5.6/dist/dialog-polyfill.css -O vendor/dialog-polyfill.css12 10 13 11 icon-128.png: icon.svg 14 12 inkscape $< --export-filename=$@
diff --git a/manifest.json b/manifest.json
@@ -38,7 +38,6 @@ 38 38 "content_scripts": [{ 39 39 "matches": ["<all_urls>"], 40 40 "js": [41 -1 "vendor/dialog-polyfill.js",42 41 "vendor/aria.js", 43 42 "treeview.js", 44 43 "outline.js" @@ -50,7 +49,6 @@ 50 49 ], 51 50 52 51 "web_accessible_resources": [53 -1 "vendor/dialog-polyfill.css",54 52 "outline.css" 55 53 ] 56 54 }
diff --git a/outline.js b/outline.js
@@ -21,11 +21,6 @@ var createDialog = function() {
21 21 dialog.remove();
22 22 });
23 23 document.body.appendChild(dialog);
24 -1
25 -1 if (!dialog.showModal) {
26 -1 dialogPolyfill.registerDialog(dialog);
27 -1 }
28 -1
29 24 return dialog;
30 25 };
31 26
@@ -124,11 +119,6 @@ var quickNav = function() {
124 119 style.href = chrome.runtime.getURL('outline.css');
125 120 dialog.appendChild(style);
126 121
127 -1 style = document.createElement('link');
128 -1 style.rel = 'stylesheet';
129 -1 style.href = chrome.runtime.getURL('vendor/dialog-polyfill.css');
130 -1 dialog.appendChild(style);
131 -1
132 122 updateVisiblePane(select, dialog);
133 123 dialog.showModal();
134 124 };
diff --git a/src/outline.scss b/src/outline.scss
@@ -32,16 +32,6 @@ $color-tint: #eee; 32 32 border-radius: 0.3em; 33 33 box-shadow: 0 0 0.5em rgba(0,0,0,0.3); 34 3435 -1 // compat for browsers without dialog support36 -1 &._is-open {37 -1 display: block;38 -1 position: fixed;39 -1 top: 5vh;40 -1 max-height: 90vh;41 -1 box-sizing: border-box;42 -1 overflow: auto;43 -1 }44 -145 35 select { 46 36 @extend %button-base; 47 37