Skip to content

Commit

Permalink
fix: Mux-player imports (#1056)
Browse files Browse the repository at this point in the history
Fix: #1055
My fix is based on importing media-chrome elsewhere.

Co-authored-by: Ilya Razuvaev <ilyarazuvaev@MacBook-Pro-Ilya.local>
  • Loading branch information
IlyaRazuvaev and Ilya Razuvaev authored Jan 10, 2025
1 parent 12b9a23 commit 9b7ec1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mux-player/src/themes/classic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import theme from './classic.html';
import { document, globalThis } from '../../polyfills';
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
import 'media-chrome/dist/menu';

const template = document.createElement('template');
if ('innerHTML' in template) template.innerHTML = theme;
Expand Down
2 changes: 1 addition & 1 deletion packages/mux-player/src/themes/gerwig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import theme from './gerwig.html';
import { document, globalThis } from '../../polyfills';
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
import 'media-chrome/dist/menu';

const template = document.createElement('template');
if ('innerHTML' in template) template.innerHTML = theme;
Expand Down

0 comments on commit 9b7ec1b

Please sign in to comment.