diff --git a/src/Finder.ts b/src/Finder.ts index 91442b4..f3cd2de 100644 --- a/src/Finder.ts +++ b/src/Finder.ts @@ -1,3 +1,5 @@ +import { version } from '../package.json'; + import { type Asset, type FrontifyAsset, requestAssetsById } from './Api'; import { FinderError } from './Exception'; import { logMessage } from './Logger'; @@ -38,10 +40,6 @@ export class FrontifyFinder { private callbacks: FinderCallbacks = {}; private unsubscribe: (() => void) | undefined; - private static get VERSION(): number { - return 2.0; - } - constructor( private token: Token, private options: FinderOptions, @@ -104,7 +102,7 @@ export class FrontifyFinder { private initialize(): void { this.iFrame?.contentWindow?.postMessage( { - version: FrontifyFinder.VERSION, + version, token: this.accessToken, supports: { cancel: true,