Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
chore: storyblok bridge file improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lsliwaradioluz committed Dec 12, 2023
1 parent 2c6d527 commit 10ec7f0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/helpers/storyblokBridge.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
declare global {
interface Window {
StoryblokBridge: any
}
}

const { StoryblokBridge } = window

export const storyblokBridge = (
content = { content: {} },
events = ['change', 'input'],
relations = [],
) => {
if (window) {
// eslint-disable-next-line
// @ts-ignore
const instance = new StoryblokBridge({

Check warning on line 9 in src/helpers/storyblokBridge.ts

View workflow job for this annotation

GitHub Actions / Continuous Integration / Run CI (16)

'StoryblokBridge' is not defined

Check warning on line 9 in src/helpers/storyblokBridge.ts

View workflow job for this annotation

GitHub Actions / Continuous Integration / Run CI (18)

'StoryblokBridge' is not defined
resolveRelations: relations,
})
Expand Down

0 comments on commit 10ec7f0

Please sign in to comment.