From 2e5c84868cf114bd2bc6320a881752064af9f5d5 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 25 Mar 2023 21:38:21 +0400 Subject: [PATCH] Fix bugs --- bundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle.js b/bundle.js index dc162f8..2710a6e 100644 --- a/bundle.js +++ b/bundle.js @@ -20,7 +20,7 @@ window.leqsikoni = { }, words_xxxxx: function(word_id) { - window.leqsikoni.words_xxxxx_template() + $('#app').html(window.leqsikoni.words_xxxxx_template()) $.getJSON( 'http://localhost:4567/words/' + word_id, @@ -32,7 +32,7 @@ window.leqsikoni = { }, words_xxxxx_template: function(options) { - if (options === null || typeof(options) !== 'object') { + if (!options || typeof(options) !== 'object') { options = {} }