Skip to content

Commit

Permalink
fixed trim for extension id (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad authored Jan 3, 2025
1 parent 1488846 commit 59c0fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/keplr.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const keplr = {
async getExtensionDetails() {
const keplrExtensionData = (await playwright.getExtensionsData()).keplr;

extensionId = keplrExtensionData.id.trim();
extensionId = keplrExtensionData.id;
extensionVersion = keplrExtensionData.version;
registrationUrl = `chrome-extension://${extensionId}/register.html`;
permissionsUrl = `chrome-extension://${extensionId}/popup.html#/setting/security/permission`;
Expand Down
4 changes: 2 additions & 2 deletions commands/playwright-keplr.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {

extensionsData[extensionName] = {
version: extensionVersion,
id: extensionId,
id: extensionId.trim(),
};
}
await page.close();
Expand All @@ -149,7 +149,7 @@ module.exports = {
} else if (
page
.url()
.includes(`chrome-extension://${keplrExtensionData.id.trim()}/register.html`)
.includes(`chrome-extension://${keplrExtensionData.id}/register.html`)
) {
keplrWindow = page;
}
Expand Down

0 comments on commit 59c0fc4

Please sign in to comment.