SimonStnn / pop-a-loon

The new rising trend (literally) that changes the browser game completely.
https://github.com/SimonStnn/pop-a-loon#installation
Apache License 2.0
10 stars 4 forks source link

Change `importStylesheet` style location #211

Closed SimonStnn closed 3 weeks ago

SimonStnn commented 1 month ago

importStylesheet should add the stylesheets to the balloonContainer, not the document head.

https://github.com/SimonStnn/pop-a-loon/blob/285998fd9b228182f83e6fb4a2dd81fb0347d391/src/utils.ts#L117

You can get the balloonContainer with:

import { getBalloonContainer } from '@/utils';

getBalloonContainer() // This returns the instance of the balloon container loaded in the webpage