Skip to content

Commit 5c6ea28

Browse files
steveseguinactions-user
authored andcommitted
fix(twitchPlugin): Add GitHub CDN fallback for tmi.js
Enhance reliability of tmi.js loading within the `webonlymode` Twitch plugin. - Adds `https://cdn.jsdelivr.net/gh/tmijs/tmi.js@1.8.5/dist/tmi.min.js` as an alternative source. - This new source utilizes GitHub's CDN, which is more resilient to potential issues where npm mirror CDNs (e.g., `jsdelivr.net/npm`, `unpkg.com`) might drop or fail to serve the built browser bundle. - Part of ongoing work to improve the robustness and testing of web-only features on the `beta` branch. [auto-enhanced]
1 parent 7d67771 commit 5c6ea28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

webonlymode/plugins/twitchPlugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const TWITCH_SCOPES = [
1818
];
1919

2020
const TMI_SOURCES = [
21+
// GitHub CDN keeps the built browser bundle even when npm mirrors drop dist/
22+
'https://cdn.jsdelivr.net/gh/tmijs/tmi.js@1.8.5/dist/tmi.min.js',
2123
'https://cdn.jsdelivr.net/npm/tmi.js@1.8.5/dist/tmi.min.js',
2224
'https://unpkg.com/tmi.js@1.8.5/dist/tmi.min.js'
2325
];

0 commit comments

Comments
 (0)