Skip to content

Commit

Permalink
let -> const
Browse files Browse the repository at this point in the history
Thanks Tymek 🙏
  • Loading branch information
alvinometric committed Jan 2, 2025
1 parent fc7e92f commit 0c08ce7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ import { UnleashClient } from "https://esm.sh/unleash-proxy-client";
const corgiImg = document.getElementById("corgi-img");
const funFact = document.getElementById("fun-fact");
const newCorgiBtn = document.getElementById("new-corgi-btn");
let unleash = null;
const unleash = null;

const funFacts = [
"Corgis were originally bred for herding cattle and sheep.",
Expand Down Expand Up @@ -167,7 +167,7 @@ You'll need 2 things:
With these 2, you can initialize your Unleash client as follows:

```js
let unleash = new UnleashClient({
const unleash = new UnleashClient({
url: "http://localhost:4242/api/",
clientKey: "YOUR_API_KEY",
appName: "corgi-site",
Expand All @@ -180,7 +180,7 @@ Now, let's add our client to the project, after the selectors. Don't forget to a
const corgiImg = document.getElementById("corgi-img");
const funFact = document.getElementById("fun-fact");
const newCorgiBtn = document.getElementById("new-corgi-btn");
let unleash = new UnleashClient({
const unleash = new UnleashClient({
url: "http://localhost:4242/api/",
clientKey: "YOUR_API_KEY",
appName: "corgi-site",
Expand Down

0 comments on commit 0c08ce7

Please sign in to comment.