diff --git a/browser/extention.js b/browser/extention.js index fd529b2..db92ac5 100644 --- a/browser/extention.js +++ b/browser/extention.js @@ -13,7 +13,7 @@ socketio.onload = function() { (document.head || document.documentElement).appendChild(socketio); const lib = document.createElement('script'); -lib.src = chrome.runtime.getURL('js/lib.user.js'); +lib.src = chrome.runtime.getURL('lib.user.js'); lib.onload = function() { this.remove(); }; diff --git a/browser/manifest.json b/browser/manifest.json index 4c34fff..d9cd6fb 100644 --- a/browser/manifest.json +++ b/browser/manifest.json @@ -10,7 +10,7 @@ "web_accessible_resources": [ "js/jquery-3.4.1.min.js", "js/socket.io.slim.js", - "js/lib.user.js" + "lib.user.js" ], "content_scripts": [{ "matches": ["https://www.youtube.com/*"], diff --git a/webpack.browser.js b/webpack.browser.js index e490fa6..4fcccb4 100644 --- a/webpack.browser.js +++ b/webpack.browser.js @@ -21,12 +21,6 @@ module.exports = merge(baseConfig.webpack, { from: 'browser', to: '.', }]), - new ZipPlugin({ - pathMapper: function(assetPath) { - if (assetPath.toString() === 'lib.user.js') - return 'js/lib.user.js'; - return assetPath; - }, - }) + new ZipPlugin() ] }); \ No newline at end of file