()
| 57 | } |
| 58 | |
| 59 | async function initBare() { |
| 60 | getApi().sendLog("Init Bare"); |
| 61 | document.body.style.visibility = "hidden"; |
| 62 | document.body.style.opacity = "0"; |
| 63 | document.body.classList.add("is-transparent"); |
| 64 | getApi().onWaveInit(initWaveWrap); |
| 65 | getApi().onBuilderInit(initBuilderWrap); |
| 66 | setKeyUtilPlatform(platform); |
| 67 | loadFonts(); |
| 68 | updateZoomFactor(getApi().getZoomFactor()); |
| 69 | getApi().onZoomFactorChange((zoomFactor) => { |
| 70 | updateZoomFactor(zoomFactor); |
| 71 | }); |
| 72 | document.fonts.ready.then(() => { |
| 73 | console.log("Init Bare Done"); |
| 74 | getApi().setWindowInitStatus("ready"); |
| 75 | }); |
| 76 | } |
| 77 | |
| 78 | document.addEventListener("DOMContentLoaded", initBare); |
| 79 |
nothing calls this directly
no test coverage detected