Skip to content

Commit

Permalink
Add default string to importStylesheet function close #260
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStnn committed Jul 14, 2024
1 parent 84e366b commit 538e840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/balloon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default abstract class Balloon {
this.element.addEventListener('click', this.pop.bind(this));
}

protected async importStylesheet(name: string): Promise<void> {
protected async importStylesheet(name: string = 'style.css'): Promise<void> {
await importStylesheet(
`${this.name}-styles`,
joinPaths(this.resourceLocation, name)
Expand Down

0 comments on commit 538e840

Please sign in to comment.