mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-20 01:28:09 +09:00
37 lines
558 B
JavaScript
37 lines
558 B
JavaScript
/**
|
|
* Desktop Client
|
|
*/
|
|
|
|
// Style
|
|
import './style.styl';
|
|
|
|
require('./tags');
|
|
require('./mixins');
|
|
import * as riot from 'riot';
|
|
import init from '../init';
|
|
import route from './router';
|
|
import fuckAdBlock from './scripts/fuck-ad-block';
|
|
|
|
/**
|
|
* init
|
|
*/
|
|
init(me => {
|
|
/**
|
|
* Fuck AD Block
|
|
*/
|
|
fuckAdBlock();
|
|
|
|
/**
|
|
* Init Notification
|
|
*/
|
|
if ('Notification' in window) {
|
|
// 許可を得ていなかったらリクエスト
|
|
if (Notification.permission == 'default') {
|
|
Notification.requestPermission();
|
|
}
|
|
}
|
|
|
|
// Start routing
|
|
route(me);
|
|
});
|