Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 committed Jul 23, 2024
1 parent dd61a51 commit c155cc4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/page-settings/src/useExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,8 @@ async function getExtensionInfo (api: ApiPromise, extension: InjectedExtension):
let isOk = false;

try {
console.log('checking')
const firstCheck = await metadata.provide(def);
console.log('first check done')
console.log('second check done')
isOk = firstCheck;
console.log('old isOk: ', isOk);
const secondCheck = await metadata.get();
console.log('injected meta: ', secondCheck)
isOk = await metadata.provide(def);

if (isOk) {
saveProperties(api, extension);
triggerAll();
Expand All @@ -128,8 +122,6 @@ async function getExtensionInfo (api: ApiPromise, extension: InjectedExtension):
// ignore
}
return isOk;


},
};
} catch {
Expand Down

0 comments on commit c155cc4

Please sign in to comment.