Hello.
While developing a custom UI extension I found out that newer version of SDK refuses to initialize (also I have no idea how to even debug it, since my server successfully responds with the page and I can’t see execution from UI).
Using the same code, older version successfully opens a custom modal and window.
Note that I did change AppExtensionsSdk to AppExtensionsSDK for version 0.9.0
This works:
<script src="https://cdn.jsdelivr.net/npm/@pipedrive/app-extensions-sdk@0.2.0-rc.0/dist/index.umd.js"></script>
<script>
(async function () {
const sdk = await new AppExtensionsSdk().initialize();
await sdk.execute(AppExtensionsSdk.Command.RESIZE, { width: 1200, height: 800 });
})();
</script>
And this doesn’t work, even thought I’m copying from GitHub example.
<script src="https://cdn.jsdelivr.net/npm/@pipedrive/app-extensions-sdk@0.9.0/dist/index.umd.js"></script>
<script>
(async function () {
const sdk = await new AppExtensionsSDK().initialize();
await sdk.execute(AppExtensionsSDK.Command.RESIZE, { width: 1200, height: 800 });
})();
</script>
What else am I doing wrong?