File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export async function checkUpdates() {
9
9
. then ( resJSON => {
10
10
const latestVersion = resJSON [ "tag_name" ] . replace ( "v" , "" ) ;
11
11
if ( gt ( latestVersion , currentVersion ) ) {
12
- logseq . App . showMsg ( `New version ${ latestVersion } is available(logseq-plugin-image-uploader).` , "info " ) ;
12
+ logseq . App . showMsg ( `New version ${ latestVersion } is available(logseq-plugin-image-uploader).` , "warning " ) ;
13
13
}
14
14
} )
15
15
}
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import { checkUpdates } from "./CheckUpdatesUtils";
3
3
import { checkAndUploadBlock } from "./ImageUploadUtils" ;
4
4
5
5
async function main ( ) {
6
- checkUpdates ( ) ;
6
+ setTimeout ( ( ) => {
7
+ checkUpdates ( ) ;
8
+ } , 5000 ) ;
7
9
8
10
const graphInfo = await logseq . App . getCurrentGraph ( ) ;
9
11
const graphPath = graphInfo ?. path ;
@@ -38,7 +40,7 @@ async function main() {
38
40
setTimeout ( async ( ) => {
39
41
let isEditing = await logseq . Editor . checkEditing ( ) ;
40
42
if ( typeof isEditing === "string" && isEditing === uuid ) {
41
- // logseq.App.showMsg("Still editing, check it later.", "info ");
43
+ // logseq.App.showMsg("Still editing, check it later.", "warning ");
42
44
checkLater ( ) ;
43
45
} else {
44
46
// await logseq.Editor.exitEditingMode();
You can’t perform that action at this time.
0 commit comments