Skip to content

Commit

Permalink
[FIX] Change widget options names + minor fixes (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGauthier authored Mar 3, 2023
1 parent f0b7090 commit a1d4b77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const processEnv = {
GITHUB_CLIENT_SECRET: process.env.GITHUB_CLIENT_SECRET,
UPSTASH_REDIS_REST_URL: process.env.UPSTASH_REDIS_REST_URL,
UPSTASH_REDIS_REST_TOKEN: process.env.UPSTASH_REDIS_REST_TOKEN,
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
PRISMA_DEBUG: process.env.PRISMA_DEBUG,
};

// Don't touch the part below
Expand Down
9 changes: 6 additions & 3 deletions apps/widget/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ async function init() {
let HEADLESS: string | boolean = false

if (document.currentScript) {
AUTOCAPTURE = document.currentScript.getAttribute("data-active-users-autocapture") || AUTOCAPTURE
PROJECT_ID = document.currentScript.getAttribute("data-active-users-project-id") || PROJECT_ID
HEADLESS = document.currentScript.getAttribute("data-active-users-headless") || HEADLESS
// @todo Document this
AUTOCAPTURE = document.currentScript.getAttribute("data-autocapture") || AUTOCAPTURE
// @todo Document this
PROJECT_ID = document.currentScript.getAttribute("data-project-id") || PROJECT_ID
// @todo Document this
HEADLESS = document.currentScript.getAttribute("data-headless") || HEADLESS
}

const existingWidgetElement = document.querySelector<HTMLDivElement>(`.${WIDGET_CLASS}`)
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@
"prettier": "^2.7.1",
"turbo": "latest"
},
"packageManager": "pnpm@7.25.1",
"dependencies": {
"web": "link:apps/web"
}
"packageManager": "pnpm@7.25.1"
}

0 comments on commit a1d4b77

Please sign in to comment.