mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix(plugin): make the latest user sdk compatible for old plugin core
This commit is contained in:
@@ -394,9 +394,14 @@ export class LSPluginUser
|
||||
this._caller.debugTag = `#${baseInfo.id} [${baseInfo.name}]`
|
||||
}
|
||||
|
||||
await this._execCallableAPIAsync('setSDKMetadata', {
|
||||
version: this._version,
|
||||
})
|
||||
try {
|
||||
await this._execCallableAPIAsync('setSDKMetadata', {
|
||||
version: this._version,
|
||||
})
|
||||
} catch (e) {
|
||||
console.warn(e)
|
||||
}
|
||||
|
||||
|
||||
callback && callback.call(this, baseInfo)
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user