Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage and getLocale is no longer flask-only #1204

Merged
merged 3 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions snaps/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ The following Snaps features are available in the stable version of MetaMask:
href: "features/custom-evm-accounts",
title: "Custom EVM accounts",
description: "Connect to custom EVM accounts in MetaMask."
},
{
icon: require("./assets/features/homepage.png").default,
href: "reference/permissions#endowmentpage-home",
title: "Home pages",
description: "Present a dedicated UI page in MetaMask for your Snap."
}
]}
/>
Expand All @@ -117,13 +123,6 @@ the canary distribution of MetaMask:
description: "Add extra friction to the transaction flow if a transaction looks risky.",
flaskOnly: true
},
{
icon: require("./assets/features/homepage.png").default,
href: "reference/permissions#endowmentpage-home",
title: "Home pages",
description: "Present a dedicated UI page in MetaMask for your Snap.",
flaskOnly: true
},
{
icon: require("./assets/features/network.png").default,
href: "features/custom-evm-accounts#account-abstraction-erc-4337",
Expand Down
3 changes: 0 additions & 3 deletions snaps/reference/entry-points.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,6 @@ module.exports.onUpdate = async () => {

### `onHomePage`

:::flaskOnly
:::

To build an embedded UI in MetaMask that any user can access through the Snaps menu, a Snap must
expose the `onHomePage` entry point.
MetaMask calls the `onHomePage` handler method when the user selects the Snap name in the Snaps menu.
Expand Down
3 changes: 0 additions & 3 deletions snaps/reference/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ See the [list of methods](../learn/about-snaps/apis.md#metamask-json-rpc-api) no

### `endowment:page-home`

:::flaskOnly
:::

To present a dedicated UI within MetaMask, a Snap must request the `endowment:page-home` permission.
This permission allows the Snap to specify a "home page" by exposing the
[`onHomePage`](../reference/entry-points.md#onhomepage) entry point.
Expand Down
3 changes: 0 additions & 3 deletions snaps/reference/snaps-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@ console.log(contents);

## `snap_getLocale`

:::flaskOnly
:::

Gets the user's locale setting. You can use this method to localize text in your snap.

### Returns
Expand Down
Loading