summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-06-21 15:52:43 -0400
committerGitHub <noreply@github.com>2020-06-21 15:52:43 -0400
commit3db7b3a92569e2789776480e776f454d084091d9 (patch)
treecd3b3f00ecd1941758b04e4ac4bdf85bab77e63e /ext/bg
parent9e28db6ef7df990ee035b5e191727f8c0d3d3139 (diff)
Add option to use the unsecure frame URL (#618)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/data/options-schema.json7
-rw-r--r--ext/bg/js/options.js3
-rw-r--r--ext/bg/settings.html4
3 files changed, 12 insertions, 2 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 656da989..0379fa75 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -109,7 +109,8 @@
"showPitchAccentDownstepNotation",
"showPitchAccentPositionNotation",
"showPitchAccentGraph",
- "showIframePopupsInRootFrame"
+ "showIframePopupsInRootFrame",
+ "unsecurePopupFrameUrl"
],
"properties": {
"enable": {
@@ -247,6 +248,10 @@
"showIframePopupsInRootFrame": {
"type": "boolean",
"default": false
+ },
+ "unsecurePopupFrameUrl": {
+ "type": "boolean",
+ "default": false
}
}
},
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 35fdde82..97368a0b 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -176,7 +176,8 @@ function profileOptionsCreateDefaults() {
showPitchAccentDownstepNotation: true,
showPitchAccentPositionNotation: true,
showPitchAccentGraph: false,
- showIframePopupsInRootFrame: false
+ showIframePopupsInRootFrame: false,
+ unsecurePopupFrameUrl: false
},
audio: {
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index a530534c..118a13b9 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -183,6 +183,10 @@
</div>
<div class="checkbox options-advanced">
+ <label><input type="checkbox" id="show-iframe-popups-in-root-frame" data-setting="general.unsecurePopupFrameUrl"> Use unsecure popup frame URL</label>
+ </div>
+
+ <div class="checkbox options-advanced">
<label><input type="checkbox" id="show-debug-info" data-setting="general.debugInfo" data-transform-pre="setDocumentAttribute" data-transform-post="setDocumentAttribute" data-document-attribute="data-options-general-debug-info"> Show debug information</label>
</div>