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
<script defer src='https://my.backend.io/v1/library/customer-xyz123/ /> |
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
import { getCalApi } from "@calcom/embed-react" | |
import { useRef, useEffect } from "react" | |
const useCalDotCom = (namespace: string, link: string, config: object) => { | |
const calRef = useRef<any>(null) | |
useEffect(() => { | |
const initCal = async () => { | |
const cal = await getCalApi() |
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
// 1. Dump me into the console of any Next site. (Change the querySelector of line 4 to main, or body, or whatever, if it's not Next.js. | |
// 2. Use the console search (ctrl_f) to find what you want. | |
// 3. Build cool features. | |
// Get the root fiber node | |
const main = document.querySelector('#__next'); | |
const fiberKey = Object.keys(main).find(key => key.startsWith('__react')); | |
const fiberNode = main[fiberKey]; | |
const collectedGold = []; |