From e799aa5e5f7dd526214b8e55de86f525cefec3ee Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 4 Mar 2017 19:53:28 -0800 Subject: cleanup --- ext/bg/js/templates.js | 8 ++++---- ext/bg/js/translator.js | 2 +- ext/bg/js/util.js | 4 ++-- ext/bg/js/yomichan.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ext/bg') diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 0fa41b36..8c8f4204 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -457,17 +457,17 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia },"13":function(container,depth0,helpers,partials,data) { var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression; - return " \n \n \n"; + + "\">\n"; },"15":function(container,depth0,helpers,partials,data) { var helper; return " \n"; + + "\">\n"; },"17":function(container,depth0,helpers,partials,data) { var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer = "
"; diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 967b8bfe..67430aef 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -31,7 +31,7 @@ class Translator { } const promises = [ - jsonLoadInt('bg/lang/deinflect.json'), + jsonLoadInt('/bg/lang/deinflect.json'), this.database.prepare() ]; diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index d91415f7..814a27f6 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -388,8 +388,8 @@ function dictFieldFormat(field, definition, mode, options) { definition, group: options.general.groupResults, html: options.anki.htmlCards, - modeTermKanji: mode === 'term_kanji', - modeTermKana: mode === 'term_kana', + modeTermKanji: mode === 'term-kanji', + modeTermKana: mode === 'term-kana', modeKanji: mode === 'kanji' }; diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 82a06146..a61be8be 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -149,7 +149,7 @@ window.yomichan = new class { onInstalled(details) { if (details.reason === 'install') { - chrome.tabs.create({url: chrome.extension.getURL('bg/guide.html')}); + chrome.tabs.create({url: chrome.extension.getURL('/bg/guide.html')}); } } -- cgit v1.2.3