Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Initialize the bus only if required
Currently the bus is initialized when the file is imported and as the bus requires the window to be present it fails for e.g. testing without a DOM environment. To fix this the bus is now initialized on the first usage and while the window is not present only a stub is used. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters