From 59c0fc4a0dbc37408e0c265714af487a3ad362c0 Mon Sep 17 00:00:00 2001 From: frazarshad Date: Fri, 3 Jan 2025 17:58:13 +0500 Subject: [PATCH] fixed trim for extension id (#57) --- commands/keplr.js | 2 +- commands/playwright-keplr.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/keplr.js b/commands/keplr.js index 29b6e5c15..4372aa918 100644 --- a/commands/keplr.js +++ b/commands/keplr.js @@ -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`; diff --git a/commands/playwright-keplr.js b/commands/playwright-keplr.js index 581f7839b..4a5b63ca9 100644 --- a/commands/playwright-keplr.js +++ b/commands/playwright-keplr.js @@ -131,7 +131,7 @@ module.exports = { extensionsData[extensionName] = { version: extensionVersion, - id: extensionId, + id: extensionId.trim(), }; } await page.close(); @@ -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; }