Skip to content

Commit

Permalink
fix(UI): script to register at viewer has to require viewer
Browse files Browse the repository at this point in the history
avoids conditions where registering is attempted when OCA.Viewer is not
established yet

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed May 14, 2024
1 parent eb14b3a commit 6202017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Listener/LoadViewerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

class LoadViewerListener implements IEventListener {
public function handle(Event $event): void {
Util::addScript('officeonline', 'viewer');
Util::addScript('officeonline', 'viewer', 'viewer');
}
}

0 comments on commit 6202017

Please sign in to comment.