diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 32b89f0e4..fe5d15d5a 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -1579,3 +1579,7 @@ func copyAssetsToDataAssets(rootPath string) { } } } + +func isFileWatcherAvailable() bool { + return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container +} diff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.go index a7d1b7ed9..174a7b504 100644 --- a/kernel/model/assets_watcher.go +++ b/kernel/model/assets_watcher.go @@ -30,10 +30,6 @@ import ( "github.com/siyuan-note/siyuan/kernel/util" ) -func isFileWatcherAvailable() bool { - return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container -} - var assetsWatcher *fsnotify.Watcher func WatchAssets() {