League-of-Foundry-Developers / foundryvtt-devMode

A module with some tools to help enable Foundry VTT package developers.
MIT License
12 stars 15 forks source link

Pass `api` to the `devModeReady` hook. #35

Closed zeel01 closed 2 years ago

zeel01 commented 2 years ago

Describe the solution you'd like It would be nice if the dev mode api were passed into the devModeReady hook so that it wouldn't be necessary to retrieve it from game.modules.get("_dev-mode")?.api.

akrigline commented 2 years ago

this is how it works today I think?

https://github.com/League-of-Foundry-Developers/foundryvtt-devMode/blob/main/foundryvtt-devMode.mjs#L36

https://github.com/League-of-Foundry-Developers/foundryvtt-devMode#step-1-register-your-debug-flag