Skip to content

Commit

Permalink
Correct bug for SDK docs (MetaMask#1088)
Browse files Browse the repository at this point in the history
* correct bug

* push chanegs for all js
  • Loading branch information
joaniefromtheblock authored Jan 18, 2024
1 parent 927b0dc commit 759d6dd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions wallet/how-to/connect/set-up-sdk/javascript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Instantiate the SDK using any [options](../../../../reference/sdk-js-options.md)
const MMSDK = new MetaMaskSDK(
dappMetadata: {
name: "JavaScript example dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
);
Expand Down Expand Up @@ -98,7 +98,7 @@ import { MetaMaskSDK } from '@metamask/sdk';
const MMSDK = new MetaMaskSDK(
dappMetadata: {
name: "Example JavaScript Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
);
Expand Down
4 changes: 2 additions & 2 deletions wallet/how-to/connect/set-up-sdk/javascript/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Instantiate the SDK using any [options](../../../../reference/sdk-js-options.md)
const MMSDK = new MetaMaskSDK({
dappMetadata: {
name: "Example Node.js Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
});
Expand Down Expand Up @@ -82,7 +82,7 @@ import { MetaMaskSDK } from '@metamask/sdk';
const MMSDK = new MetaMaskSDK({
dappMetadata: {
name: "Example Node.js Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Instantiate the SDK using any [options](../../../../reference/sdk-js-options.md)
const MMSDK = new MetaMaskSDK(
dappMetadata: {
name: "Example JavaScript Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
);
Expand Down Expand Up @@ -83,7 +83,7 @@ import { MetaMaskSDK } from '@metamask/sdk';
const MMSDK = new MetaMaskSDK(
dappMetadata: {
name: "Example JavaScript Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
);
Expand Down
2 changes: 1 addition & 1 deletion wallet/how-to/connect/set-up-sdk/javascript/pure-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To import, instantiate, and use the SDK, you can insert a script in the head sec
const MMSDK = new MetaMaskSDK.MetaMaskSDK(
dappMetadata: {
name: "Example Pure JS Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
)
Expand Down
4 changes: 2 additions & 2 deletions wallet/how-to/connect/set-up-sdk/javascript/react/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ root.render(
<MetaMaskProvider debug={false} sdkOptions={{
dappMetadata: {
name: "Example React Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
}}>
Expand Down Expand Up @@ -180,7 +180,7 @@ root.render(
<MetaMaskProvider debug={false} sdkOptions={{
dappMetadata: {
name: "Example React Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
}}>
Expand Down
4 changes: 2 additions & 2 deletions wallet/how-to/connect/set-up-sdk/javascript/react/react-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ root.render(
<MetaMaskUIProvider sdkOptions={{
dappMetadata: {
name: "Example React UI Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
}}>
Expand Down Expand Up @@ -145,7 +145,7 @@ root.render(
<MetaMaskUIProvider sdkOptions={{
dappMetadata: {
name: "Example React UI Dapp",
url: window.location.host,
url: window.location.href,
}
// Other options
}}>
Expand Down

0 comments on commit 759d6dd

Please sign in to comment.