aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/css/frame.css2
-rw-r--r--ext/fg/frame.html2
-rw-r--r--ext/fg/js/frame.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css
index 9697ba2e..e2006328 100644
--- a/ext/fg/css/frame.css
+++ b/ext/fg/css/frame.css
@@ -41,7 +41,7 @@ hr {
margin-bottom: 0.8em;
}
-.spinner {
+#spinner {
bottom: 5px;
display: none;
position: fixed;
diff --git a/ext/fg/frame.html b/ext/fg/frame.html
index 14fd63c1..a5baee98 100644
--- a/ext/fg/frame.html
+++ b/ext/fg/frame.html
@@ -9,7 +9,7 @@
</head>
<body>
<div class="container-fluid">
- <div class="spinner">
+ <div id="spinner">
<img src="img/spinner.gif">
</div>
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index 32e227d0..c1253e41 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -75,7 +75,7 @@ class Frame {
const sequence = ++this.sequence;
const params = {
definitions,
- addable: options.ankiMethod !== 'disabled'
+ addable: options.anki.enabled
};
definitions.forEach(definition => {
@@ -165,7 +165,7 @@ class Frame {
}
showSpinner(show) {
- const spinner = $('.spinner');
+ const spinner = $('#spinner');
if (show) {
spinner.show();
} else {