Skip to content

Commit

Permalink
style: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuoqiu-Yingyi committed Nov 22, 2023
1 parent ae0268e commit deb2801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {addScript, addScriptSync} from "./protyle/util/addScript";
import {genUUID} from "./util/genID";
import {fetchGet, fetchPost} from "./util/fetch";
import {addBaseURL, getIdFromSYProtocol, isSYProtocol, setNoteBook} from "./util/pathName";
import {disableServiceWorker, registerServiceWorker, unregisterServiceWorker} from "./util/serviceWorker";
import {registerServiceWorker, unregisterServiceWorker} from "./util/serviceWorker";
import {openFileById} from "./editor/util";
import {
bootSync,
Expand Down Expand Up @@ -162,8 +162,7 @@ export class App {

/// #if BROWSER
await registerServiceWorker();
/// #endif
/// #if !BROWSER
/// #else
await unregisterServiceWorker();
/// #endif
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
Expand Down
2 changes: 1 addition & 1 deletion app/src/mobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {getCurrentEditor, openMobileFileById} from "./editor";
import {getSearch} from "../util/functions";
import {initRightMenu} from "./menu";
import {openChangelog} from "../boot/openChangelog";
import {disableServiceWorker, registerServiceWorker, unregisterServiceWorker} from "../util/serviceWorker";
import {registerServiceWorker, unregisterServiceWorker} from "../util/serviceWorker";
import {afterLoadPlugin, loadPlugins} from "../plugin/loader";
import {saveScroll} from "../protyle/scroll/saveScroll";
import {removeBlock} from "../protyle/wysiwyg/remove";
Expand Down

0 comments on commit deb2801

Please sign in to comment.