MCPcopy
hub / github.com/ollm/OpenComic / start

Function start

scripts/opencomic.js:273–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271});
272
273async function start()
274{
275 await electronRemote.app.whenReady();
276
277 storage.start(function() {
278
279 config = storage.get('config');
280 _config = copy(config);
281
282 handlebarsContext.config = config;
283 handlebarsContext.installedFromStore = installedFromStore.check();
284 handlebarsContext.macosMAS = macosMAS;
285
286 if(config.zoomFactor != 1)
287 electron.webFrame.setZoomFactor(Math.round(config.zoomFactor * 100) / 100);
288
289 loadLanguage(config.language);
290
291 template.loadInQuery('body', 'body.html');
292 theme.systemNightMode();
293
294 titleBar.start();
295 titleBar.setColors();
296
297 appBaseLoadedResolve();
298 startApp();
299
300 });
301}
302
303async function startApp()
304{

Callers 1

opencomic.jsFile · 0.70

Calls 4

loadLanguageFunction · 0.85
startAppFunction · 0.85
startMethod · 0.80
copyFunction · 0.70

Tested by

no test coverage detected