MCPcopy Create free account
hub / github.com/MALSync/MALSync / init

Function init

src/pages/Animeflv/main.ts:64–80  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

62 },
63 },
64 init(page) {
65 api.storage.addStyle(
66 require('!to-string-loader!css-loader!less-loader!./style.less').toString(),
67 );
68 if (document.title === 'Verifica que no eres un bot | AnimeFLV') {
69 con.log('loading');
70 page.cdn();
71 return;
72 }
73 if (window.location.hostname.startsWith('m.')) {
74 con.error('Mobile not supported');
75 return;
76 }
77 j.$(document).ready(function () {
78 page.handlePage();
79 });
80 },
81};

Callers

nothing calls this directly

Calls 4

addStyleMethod · 0.80
cdnMethod · 0.80
errorMethod · 0.80
handlePageMethod · 0.80

Tested by

no test coverage detected