summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/display-frame.js2
-rw-r--r--ext/fg/js/source-element.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js
index bd070b63..bc2e15df 100644
--- a/ext/fg/js/display-frame.js
+++ b/ext/fg/js/display-frame.js
@@ -61,7 +61,7 @@ window.displayFrame = new class extends Display {
api_showKanjiDefs({definitions, options, context}) {
window.scrollTo(0, 0);
- this.showKanjiDefs(defintions, options, context);
+ this.showKanjiDefs(definitions, options, context);
}
api_showOrphaned() {
diff --git a/ext/fg/js/source-element.js b/ext/fg/js/source-element.js
index d3cc42a1..69fbc5ab 100644
--- a/ext/fg/js/source-element.js
+++ b/ext/fg/js/source-element.js
@@ -39,7 +39,7 @@ class TextSourceElement {
case 'IMG':
return this.element.getAttribute('alt');
default:
- return this.element.value;
+ return this.element.value || '';
}
}