aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-04 19:53:28 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-04 19:53:28 -0800
commite799aa5e5f7dd526214b8e55de86f525cefec3ee (patch)
tree03d7dc0644bbac88361b6c665947f34ccdaf499d /ext/bg
parent7269583547cb379a413496946abce145703b2b8a (diff)
cleanup
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/templates.js8
-rw-r--r--ext/bg/js/translator.js2
-rw-r--r--ext/bg/js/util.js4
-rw-r--r--ext/bg/js/yomichan.js2
4 files changed, 8 insertions, 8 deletions
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 " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term_kanji\" data-index=\""
+ return " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term-kanji\" data-index=\""
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
- + "\"><img src=\"/mixed/img/add_term_kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term_kana\" data-index=\""
+ + "\"><img src=\"/mixed/img/add-term-kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term-kana\" data-index=\""
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
- + "\"><img src=\"/mixed/img/add_term_kana.png\"></a>\n";
+ + "\"><img src=\"/mixed/img/add-term-kana.png\"></a>\n";
},"15":function(container,depth0,helpers,partials,data) {
var helper;
return " <a href=\"#\" title=\"Play audio\" class=\"action-play-audio\" data-index=\""
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
- + "\"><img src=\"/mixed/img/play_audio.png\"></a>\n";
+ + "\"><img src=\"/mixed/img/play-audio.png\"></a>\n";
},"17":function(container,depth0,helpers,partials,data) {
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
" <div class=\"expression\"><ruby>";
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')});
}
}