diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts index 2a5194500..efc853955 100644 --- a/app/src/plugin/API.ts +++ b/app/src/plugin/API.ts @@ -53,11 +53,11 @@ export class Menu { this.menu.popup(options, options.isLeft); } - fullscreen(position: { x: number; y: number }) { + fullscreen(position: "bottom" | "all" = "all") { if (this.isOpen) { return; } - this.menu.popup({x: position.x, y: position.y}); + this.menu.fullscreen(position); } close() { diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index 351d0d557..f01bacdd2 100644 --- a/app/src/plugin/index.ts +++ b/app/src/plugin/index.ts @@ -18,7 +18,7 @@ export class Plugin { public addTopBar(options: { icon: string, title: string, - position: "right", + position?: "right", callback: (evt: MouseEvent) => void }) { const iconElement = document.createElement("div");