foundryvtt-gmScreen icon indicating copy to clipboard operation
foundryvtt-gmScreen copied to clipboard

API call to open the GM screen error.

Open thatlonelybugbear opened this issue 1 year ago • 0 comments

  • Foundry Core Version: 10.291
  • System & Version: dnd5e, 2.1.5, GM Screen v4.0.4
  • OS & Browser: electron app and edge browser
  • Hosting: Self Hosted

Using in console

game.modules.get('gm-screen')?.api?.toggleGmScreenVisibility(true)

returns

GmScreenApplication.ts:672 Uncaught TypeError: undefined. this.bringToTop is not a function
[Detected 1 package: gm-screen]
    at Object.toggleGmScreenVisibility (GmScreenApplication.ts:672:12)
    at <anonymous>:1:37

thatlonelybugbear avatar Mar 20 '23 14:03 thatlonelybugbear