Skip to content

Commit

Permalink
fix: πŸ› cache
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilinerL committed Nov 20, 2024
1 parent 2aa49cd commit 0cbceb6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/website/lib/iframe-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ export const syncPathToParent = (iframe: HTMLIFrameElement, to: string) => {
}, '*')
}

const cache = {
prevPath: ''
}
/**
* η›‘ε¬ε­θ·―η”±ηš„ε˜εŒ–
* @param callback
* @returns
*/
export const onPathchange = (callback?: (path: string) => void): () => void => {
const cache = { prevPath: '' }
const handleMessage = (e: { data: { value: string } }) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down

0 comments on commit 0cbceb6

Please sign in to comment.