Use single quotes
This commit is contained in:
parent
0aed27b66d
commit
943350a1f6
@ -324,7 +324,7 @@ class DisplaySearch extends Display {
|
|||||||
this.intro.style.transition = '';
|
this.intro.style.transition = '';
|
||||||
this.intro.style.height = '';
|
this.intro.style.height = '';
|
||||||
const size = this.intro.getBoundingClientRect();
|
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`;
|
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
|
window.getComputedStyle(this.intro).getPropertyValue('height'); // Commits height so next line can start animation
|
||||||
this.intro.style.height = `${size.height}px`;
|
this.intro.style.height = `${size.height}px`;
|
||||||
|
@ -401,7 +401,7 @@ class Popup {
|
|||||||
if (Popup.outerStylesheet === null) {
|
if (Popup.outerStylesheet === null) {
|
||||||
if (!css) { return; }
|
if (!css) { return; }
|
||||||
Popup.outerStylesheet = document.createElement('style');
|
Popup.outerStylesheet = document.createElement('style');
|
||||||
Popup.outerStylesheet.id = "yomichan-popup-outer-stylesheet";
|
Popup.outerStylesheet.id = 'yomichan-popup-outer-stylesheet';
|
||||||
}
|
}
|
||||||
|
|
||||||
const outerStylesheet = Popup.outerStylesheet;
|
const outerStylesheet = Popup.outerStylesheet;
|
||||||
|
@ -99,9 +99,9 @@ class TextSourceRange {
|
|||||||
|
|
||||||
static getRubyElement(node) {
|
static getRubyElement(node) {
|
||||||
node = TextSourceRange.getParentElement(node);
|
node = TextSourceRange.getParentElement(node);
|
||||||
if (node !== null && node.nodeName.toUpperCase() === "RT") {
|
if (node !== null && node.nodeName.toUpperCase() === 'RT') {
|
||||||
node = node.parentNode;
|
node = node.parentNode;
|
||||||
return (node !== null && node.nodeName.toUpperCase() === "RUBY") ? node : null;
|
return (node !== null && node.nodeName.toUpperCase() === 'RUBY') ? node : null;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -574,7 +574,7 @@ class Display {
|
|||||||
if (button !== null) {
|
if (button !== null) {
|
||||||
let titleDefault = button.dataset.titleDefault;
|
let titleDefault = button.dataset.titleDefault;
|
||||||
if (!titleDefault) {
|
if (!titleDefault) {
|
||||||
titleDefault = button.title || "";
|
titleDefault = button.title || '';
|
||||||
button.dataset.titleDefault = titleDefault;
|
button.dataset.titleDefault = titleDefault;
|
||||||
}
|
}
|
||||||
button.title = `${titleDefault}\n${info}`;
|
button.title = `${titleDefault}\n${info}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user