aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack
diff options
context:
space:
mode:
authorMichael C <[email protected]>2022-01-26 17:54:58 -0500
committerMichael C <[email protected]>2022-01-26 17:54:58 -0500
commit9457aff44f7a6d42ad9be47254ae882c8fe4a686 (patch)
tree7412a2e38baa70238c1b6ddb1cb126910378851a /webpack
parent193374db30b93cb2fe015680df9c82e5215c8fdd (diff)
downloadSponsorBlock-9457aff44f7a6d42ad9be47254ae882c8fe4a686.tar.gz
SponsorBlock-9457aff44f7a6d42ad9be47254ae882c8fe4a686.zip
linting + audio override
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.common.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index cacb07ba..6e0dd56f 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
const webpack = require("webpack");
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
@@ -84,12 +85,12 @@ module.exports = env => ({
if (env.browser.toLowerCase() === "safari") {
parsed.fullName.message = parsed.fullName.message.match(/^.+(?= -)/)?.[0] || parsed.fullName.message;
if (parsed.fullName.message.length > 50) {
- parsed.fullName.message = parsed.fullName.message.substr(0, 47) + "...";
+ parsed.fullName.message = parsed.fullName.message.slice(0, 47) + "...";
}
parsed.Description.message = parsed.Description.message.match(/^.+(?=\. )/)?.[0] || parsed.Description.message;
if (parsed.Description.message.length > 80) {
- parsed.Description.message = parsed.Description.message.substr(0, 77) + "...";
+ parsed.Description.message = parsed.Description.message.slice(0, 77) + "...";
}
}