-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: descriptive open full page action
- Loading branch information
1 parent
25be795
commit 92f2cd2
Showing
5 changed files
with
24 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@stacks/wallet-web': minor | ||
--- | ||
|
||
Adds a context menu that opens the wallet in full page mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function openNewTabWithWallet() { | ||
return chrome.tabs.create({ url: 'full-page.html' }); | ||
} | ||
|
||
export function initContextMenuActions() { | ||
chrome.contextMenus.removeAll(); | ||
|
||
chrome.contextMenus.create({ | ||
title: 'Open Hiro Wallet in a new tab', | ||
contexts: ['browser_action'], | ||
async onclick() { | ||
await openNewTabWithWallet(); | ||
}, | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
92f2cd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: