aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 14:21:19 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 22:06:27 -0500
commit943350a1f66b3576e98c58539cbff277b0069977 (patch)
tree6abeac2c37ce727543690d5c4b90b836b7850bae
parent0aed27b66d9c496e4cd57ef95d982c4e634a8666 (diff)
Use single quotes
-rw-r--r--ext/bg/js/search.js2
-rw-r--r--ext/fg/js/popup.js2
-rw-r--r--ext/fg/js/source.js4
-rw-r--r--ext/mixed/js/display.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 16cbfbbd..ae76c23b 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -324,7 +324,7 @@ class DisplaySearch extends Display {
this.intro.style.transition = '';
this.intro.style.height = '';
const size = this.intro.getBoundingClientRect();
- this.intro.style.height = `0px`;
+ this.intro.style.height = '0px';
this.intro.style.transition = `height ${duration}s ease-in-out 0s`;
window.getComputedStyle(this.intro).getPropertyValue('height'); // Commits height so next line can start animation
this.intro.style.height = `${size.height}px`;
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index ac96f9e8..df784029 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -401,7 +401,7 @@ class Popup {
if (Popup.outerStylesheet === null) {
if (!css) { return; }
Popup.outerStylesheet = document.createElement('style');
- Popup.outerStylesheet.id = "yomichan-popup-outer-stylesheet";
+ Popup.outerStylesheet.id = 'yomichan-popup-outer-stylesheet';
}
const outerStylesheet = Popup.outerStylesheet;
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js
index 5be521fa..886093d7 100644
--- a/ext/fg/js/source.js
+++ b/ext/fg/js/source.js
@@ -99,9 +99,9 @@ class TextSourceRange {
static getRubyElement(node) {
node = TextSourceRange.getParentElement(node);
- if (node !== null && node.nodeName.toUpperCase() === "RT") {
+ if (node !== null && node.nodeName.toUpperCase() === 'RT') {
node = node.parentNode;
- return (node !== null && node.nodeName.toUpperCase() === "RUBY") ? node : null;
+ return (node !== null && node.nodeName.toUpperCase() === 'RUBY') ? node : null;
}
return null;
}
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index ce43b22c..b454bf59 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -574,7 +574,7 @@ class Display {
if (button !== null) {
let titleDefault = button.dataset.titleDefault;
if (!titleDefault) {
- titleDefault = button.title || "";
+ titleDefault = button.title || '';
button.dataset.titleDefault = titleDefault;
}
button.title = `${titleDefault}\n${info}`;