MCPcopy Index your code
hub / github.com/MALSync/MALSync / init

Method init

src/pages-sync/syncPage.ts:73–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 init() {
74 const This = this;
75 j.$(document).ready(function () {
76 initFloatButton(This, This.floatClick);
77 });
78
79 if (this.testForCloudflare()) {
80 logger.log('loading');
81 this.cdn();
82 return;
83 }
84
85 this.page.init(this);
86
87 if (api.type === 'webextension') {
88 // Discord Presence
89 try {
90 chrome.runtime.onMessage.addListener((info, sender, sendResponse) => {
91 this.presence(info, sender, sendResponse);
92 });
93 } catch (e) {
94 logger.error(e);
95 }
96 }
97 }
98
99 private getPage(url) {
100 if (this.pages.type) return this.pages;

Callers 1

mainFunction · 0.95

Calls 6

testForCloudflareMethod · 0.95
cdnMethod · 0.95
presenceMethod · 0.95
initFloatButtonFunction · 0.90
errorMethod · 0.80
addListenerMethod · 0.65

Tested by

no test coverage detected