chenyc
2022-09-16 84e14a34a082e00aa2d47a64ee36398088c12aec
electron/preload/splash.ts
@@ -1,7 +1,5 @@
function domReady(condition: DocumentReadyState[] = ['complete', 'interactive']) {
    return new Promise(resolve => {
      if (condition.includes(document.readyState)) {
@@ -92,6 +90,5 @@
  window.onmessage = ev => {
    ev.data.payload === 'removeLoading' && removeLoading()
  }
  setTimeout(removeLoading, 4999)