Remove invalid addScript call
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -93,7 +93,6 @@ class Application extends App {
|
|||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
$dispatcher = $container->getServer()->query(IEventDispatcher::class);
|
$dispatcher = $container->getServer()->query(IEventDispatcher::class);
|
||||||
$dispatcher->addListener(RegisterWidgetEvent::class, function (RegisterWidgetEvent $event) use ($container) {
|
$dispatcher->addListener(RegisterWidgetEvent::class, function (RegisterWidgetEvent $event) use ($container) {
|
||||||
\OCP\Util::addScript('myapp', 'dashboard');
|
|
||||||
$event->registerWidget(DeckWidget::class);
|
$event->registerWidget(DeckWidget::class);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user