Skip to content

Commit 0057aa0

Browse files
committed
web mode updates
1 parent 32efe21 commit 0057aa0

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

webonlymode/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ webonlymode/
4444
| |-- dockMessenger.js # Dock iframe bridge helper
4545
| |-- helpers.js # Common helpers (IDs, formatting)
4646
| `-- storage.js # Namespaced localStorage helpers
47+
|-- vendor/
48+
| `-- tmi-1.8.5.min.js # Bundled Twitch client fallback (avoids broken CDN dist/ links)
4749
`-- plugins/
4850
|-- basePlugin.js # Shared card + lifecycle logic
4951
|-- youtubePlugin.js # YouTube Data API integration
@@ -53,5 +55,6 @@ webonlymode/
5355
## Development Notes
5456

5557
- The page is built as ES modules without a bundler; load it via HTTP(S) so OAuth redirects succeed.
58+
- `tmi.js` is vendored under `webonlymode/vendor/` because the npm package no longer ships `dist/` bundles on CDNs.
5659
- Messages relayed to the dock follow the existing `overlayNinja` payload conventions (e.g., `type`, `chatname`, `chatmessage`).
5760
- Activity logging is intentionally lightweight; adjust in `app.js` if you need more verbose diagnostics.

webonlymode/plugins/twitchPlugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +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/
21+
'./vendor/tmi-1.8.5.min.js',
22+
// Remote mirrors included for legacy support if the bundled copy is unavailable.
2223
'https://cdn.jsdelivr.net/gh/tmijs/tmi.js@1.8.5/dist/tmi.min.js',
2324
'https://cdn.jsdelivr.net/npm/tmi.js@1.8.5/dist/tmi.min.js',
2425
'https://unpkg.com/tmi.js@1.8.5/dist/tmi.min.js'

webonlymode/vendor/tmi-1.8.5.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)