mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 10:55:13 +01:00
45e8331e26
Closes #12, #227 and #58
36 lines
558 B
JavaScript
36 lines
558 B
JavaScript
/**
|
|
* Desktop Client
|
|
*/
|
|
|
|
// Style
|
|
import './style.styl';
|
|
|
|
require('./tags');
|
|
require('./mixins');
|
|
import * as riot from 'riot';
|
|
import boot from '../boot';
|
|
import route from './router';
|
|
import fuckAdBlock from './scripts/fuck-ad-block';
|
|
|
|
/**
|
|
* Boot
|
|
*/
|
|
boot(me => {
|
|
/**
|
|
* Fuck AD Block
|
|
*/
|
|
fuckAdBlock();
|
|
|
|
/**
|
|
* Init Notification
|
|
*/
|
|
if ('Notification' in window) {
|
|
// 許可を得ていなかったらリクエスト
|
|
if (Notification.permission == 'default') {
|
|
Notification.requestPermission();
|
|
}
|
|
}
|
|
|
|
// Start routing
|
|
route(me);
|
|
});
|