mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +00:00
4.1.1
* Fixed: Minor bug with the Add-On Loader system building URLs incorrectly in production.
This commit is contained in:
parent
b61376ac00
commit
cdedf29d04
2 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ export default class AddonManager extends Module {
|
|||
this.addons[id] = [addon.id];
|
||||
}
|
||||
|
||||
this.emit(':added-addon');
|
||||
this.emit(':added');
|
||||
}
|
||||
|
||||
rebuildAddonSearch() {
|
||||
|
@ -249,7 +249,7 @@ export default class AddonManager extends Module {
|
|||
document.head.appendChild(createElement('script', {
|
||||
id: `ffz-loaded-addon-${addon.id}`,
|
||||
type: 'text/javascript',
|
||||
src: addon.src || `https://${addon.dev ? 'localhost:8001' : SERVER}/script/addons/${addon.id}/script.js`,
|
||||
src: addon.src || `${addon.dev ? 'https://localhost:8001' : SERVER}/script/addons/${addon.id}/script.js`,
|
||||
crossorigin: 'anonymous'
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue