From 5150cdbf72421f6c37f27d93fb8965dc38bea625 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 10 Mar 2017 20:12:07 -0800 Subject: misc bug fixes, version bump --- ext/fg/js/display-frame.js | 2 +- ext/fg/js/source-element.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/fg/js') 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 || ''; } } -- cgit v1.2.3