viewer: unload upstream

pull/175/head
Varun Patil 2022-11-05 23:58:17 -07:00 committed by Varun Patil
parent e5b804375f
commit 6d65db6861
1 changed files with 0 additions and 3 deletions

View File

@ -4,7 +4,6 @@ namespace OCA\Memories\Controller;
use OCA\Files\Event\LoadSidebar;
use OCA\Memories\AppInfo\Application;
use OCA\Viewer\Event\LoadViewer;
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\ContentSecurityPolicy;
@ -62,7 +61,6 @@ class PageController extends Controller
// Scripts
Util::addScript($this->appName, 'memories-main');
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
$this->eventDispatcher->dispatchTyped(new LoadViewer());
// Configuration
$uid = $user->getUid();
@ -114,7 +112,6 @@ class PageController extends Controller
// Scripts
Util::addScript($this->appName, 'memories-main');
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
$this->eventDispatcher->dispatchTyped(new LoadViewer());
// App version
$this->initialState->provideInitialState('version', $this->appManager->getAppInfo('memories')['version']);