Use dispatchTyped
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
92a6530c0f
commit
3cdadeb9e9
|
@ -284,7 +284,7 @@ class ViewController extends Controller {
|
|||
$this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
|
||||
// Load Viewer scripts
|
||||
if (class_exists(LoadViewer::class)) {
|
||||
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
|
||||
$this->eventDispatcher->dispatchTyped(new LoadViewer());
|
||||
}
|
||||
|
||||
$params = [];
|
||||
|
|
Loading…
Reference in New Issue