mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
Add design system feature flag and runtime integration
This commit is contained in:
1 parent
8288824872
commit
8265f9e2de
42 files changed
+359
-23
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { normalizeDesignSystemContext } from "../designSystem.js";
|
||||
|
||||
export default class MoreMenuController {
|
||||
constructor(options = {}) {
|
||||
const {
|
||||
@@ -8,6 +10,7 @@ export default class MoreMenuController {
|
||||
clipboard = typeof navigator !== "undefined" ? navigator.clipboard : null,
|
||||
isDevMode = false,
|
||||
callbacks = {},
|
||||
designSystem = null,
|
||||
} = options;
|
||||
|
||||
this.document = doc;
|
||||
@@ -16,6 +19,7 @@ export default class MoreMenuController {
|
||||
this.subscriptions = subscriptions;
|
||||
this.clipboard = clipboard;
|
||||
this.isDevMode = Boolean(isDevMode);
|
||||
this.designSystem = normalizeDesignSystemContext(designSystem);
|
||||
|
||||
this.callbacks = {
|
||||
getCurrentVideo: callbacks.getCurrentVideo || (() => null),
|
||||
|
||||
Reference in new issue
Block a user