diff --git a/out/PiPer-safari-legacy.safariextz b/out/PiPer-safari-legacy.safariextz
index 8f7a944..524107a 100644
Binary files a/out/PiPer-safari-legacy.safariextz and b/out/PiPer-safari-legacy.safariextz differ
diff --git a/src/common/scripts/button.js b/src/common/scripts/button.js
index 538e859..6e555a8 100644
--- a/src/common/scripts/button.js
+++ b/src/common/scripts/button.js
@@ -30,17 +30,17 @@ export const addButton = function(parent) {
// Add scaled SVG image to button
const image = /** @type {HTMLImageElement} */ (document.createElement('img'));
const buttonImage = getResource().buttonImage || 'default';
- image.src = getExtensionURL('images/' + buttonImage + '.svg');
+ image.src = getExtensionURL(`images/${buttonImage}.svg`);
image.style.width = image.style.height = '100%';
const buttonScale = getResource().buttonScale;
- if (buttonScale) image.style.transform = 'scale(' + buttonScale + ')';
+ if (buttonScale) image.style.transform = `scale(${buttonScale})`;
button.appendChild(image);
// Add hover style to button (a nested stylesheet is used to avoid tracking another element)
const buttonHoverStyle = getResource().buttonHoverStyle;
if (buttonHoverStyle) {
const style = document.createElement('style');
- const css = '#' + BUTTON_ID + ':hover{' + buttonHoverStyle + '}';
+ const css = `#${BUTTON_ID}:hover{${buttonHoverStyle}}`;
style.appendChild(document.createTextNode(css));
button.appendChild(style);
}
@@ -83,4 +83,4 @@ export const getButton = function() {
*/
export const checkButton = function() {
return !!document.getElementById(BUTTON_ID);
-};
\ No newline at end of file
+};
diff --git a/src/common/scripts/captions.js b/src/common/scripts/captions.js
index 006bb71..b52551e 100644
--- a/src/common/scripts/captions.js
+++ b/src/common/scripts/captions.js
@@ -101,7 +101,7 @@ export const videoPresentationModeChanged = function(event) {
lastUnprocessedCaption = '';
processCaptions();
- info('Video presentation mode changed (showingCaptions: ' + showingCaptions + ')');
+ info(`Video presentation mode changed (showingCaptions: ${showingCaptions})`);
};
/**
@@ -131,7 +131,7 @@ const removeCaptions = function(video, workaround = true) {
*/
const addCaption = function(video, caption) {
- info('Showing caption "' + caption + '"');
+ info(`Showing caption '${caption}'`);
track.addCue(new VTTCue(video.currentTime, video.currentTime + 60, caption));
showingEmptyCaption = false;
@@ -175,9 +175,9 @@ export const processCaptions = function() {
if (segment) {
const style = window.getComputedStyle(walk.currentNode.parentElement);
if (style.fontStyle == 'italic') {
- caption += '' + segment + '';
+ caption += `${segment}`;
} else if (style.textDecoration == 'underline') {
- caption += '' + segment + '';
+ caption += `${segment}`;
} else {
caption += segment;
}
diff --git a/src/common/scripts/main.js b/src/common/scripts/main.js
index dd121f7..6dca360 100644
--- a/src/common/scripts/main.js
+++ b/src/common/scripts/main.js
@@ -29,7 +29,7 @@ const mutationObserver = function() {
const domainName = location.hostname && location.hostname.match(/([^.]+)\.(?:co\.)?[^.]+$/)[1];
if (domainName in resources) {
- info('Matched site ' + domainName + ' (' + location + ')');
+ info(`Matched site ${domainName} (${location})`);
setResource(resources[domainName]);
initialiseCaches();
diff --git a/src/safari-legacy/update.plist b/src/safari-legacy/update.plist
index 3f8a444..ea6109b 100644
--- a/src/safari-legacy/update.plist
+++ b/src/safari-legacy/update.plist
@@ -10,7 +10,7 @@
CFBundleShortVersionString
CFBundleVersion
- 170
+ 171
Developer Identifier
BQ6Q24MF9X
URL