summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/script.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-21 02:53:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-21 02:53:34 +0900
commita1e57841e71e442b1bf52e445e6c541f16ec066d (patch)
tree2b6862b8b47a68a98d0c1534d5dbe1ca356bea2d /src/web/app/desktop/script.ts
parentwip (diff)
downloadsharkey-a1e57841e71e442b1bf52e445e6c541f16ec066d.tar.gz
sharkey-a1e57841e71e442b1bf52e445e6c541f16ec066d.tar.bz2
sharkey-a1e57841e71e442b1bf52e445e6c541f16ec066d.zip
wip
Diffstat (limited to 'src/web/app/desktop/script.ts')
-rw-r--r--src/web/app/desktop/script.ts24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts
index 2477f62f49..b647f4031d 100644
--- a/src/web/app/desktop/script.ts
+++ b/src/web/app/desktop/script.ts
@@ -6,7 +6,7 @@
import './style.styl';
import init from '../init';
-import fuckAdBlock from './scripts/fuck-ad-block';
+import fuckAdBlock from '../common/scripts/fuck-ad-block';
import HomeStreamManager from '../common/scripts/streaming/home-stream-manager';
import composeNotification from '../common/scripts/compose-notification';
@@ -15,6 +15,9 @@ import chooseDriveFile from './api/choose-drive-file';
import dialog from './api/dialog';
import input from './api/input';
import post from './api/post';
+import notify from './api/notify';
+import updateAvatar from './api/update-avatar';
+import updateBanner from './api/update-banner';
import MkIndex from './views/pages/index.vue';
import MkUser from './views/pages/user/user.vue';
@@ -25,24 +28,27 @@ import MkDrive from './views/pages/drive.vue';
* init
*/
init(async (launch) => {
- /**
- * Fuck AD Block
- */
- fuckAdBlock();
-
// Register directives
require('./views/directives');
// Register components
require('./views/components');
- const app = launch({
+ const [app, os] = launch(os => ({
chooseDriveFolder,
chooseDriveFile,
dialog,
input,
- post
- });
+ post,
+ notify,
+ updateAvatar: updateAvatar(os),
+ updateBanner: updateBanner(os)
+ }));
+
+ /**
+ * Fuck AD Block
+ */
+ fuckAdBlock(os);
/**
* Init Notification