Skip to content

Commit

Permalink
change chrome.extension.getURL() to chrome.runtime.getURL()
Browse files Browse the repository at this point in the history
  • Loading branch information
yushih committed Aug 15, 2022
1 parent f815562 commit 507f04f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/yoroi-extension/chrome/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ async function confirmSign(
});
chrome.windows.create({
...popupProps,
url: chrome.extension.getURL(`/main_window_connector.html#/signin-transaction`),
url: chrome.runtime.getURL(`/main_window_connector.html#/signin-transaction`),
left: (bounds.width + bounds.positionX) - popupProps.width,
top: bounds.positionY + 80,
});
Expand Down Expand Up @@ -800,7 +800,7 @@ async function confirmConnect(
});
chrome.windows.create({
...popupProps,
url: chrome.extension.getURL('main_window_connector.html'),
url: chrome.runtime.getURL('main_window_connector.html'),
left: (bounds.width + bounds.positionX) - popupProps.width,
top: bounds.positionY + 80,
});
Expand All @@ -819,7 +819,7 @@ chrome.runtime.onMessageExternal.addListener((message, sender) => {
const bounds = getBoundsForWindow(currentWindow);
chrome.windows.create({
...popupProps,
url: chrome.extension.getURL(`/main_window_connector.html#/settings`),
url: chrome.runtime.getURL(`/main_window_connector.html#/settings`),
left: (bounds.width + bounds.positionX) - popupProps.width,
top: bounds.positionY + 80,
});
Expand Down

0 comments on commit 507f04f

Please sign in to comment.