fix: make sure stepCycle exists before calling (#1509)

* fix: make sure checking stepCycle func exist before calling

* fix: make sure stepCycle func exist before calling

* fix: also check if app exist

* fix: add return

* fix: make sure checking stepCycle func exist before calling

* fix: make sure stepCycle func exist before calling

* fix: also check if app exist

* fix: add return

* chore: update engima and schema version

* test: unit test

* fix: remove engine version

---------

Co-authored-by: caele <tsm@qlik.com>
This commit is contained in:
linhnguyen-qlik
2024-03-18 11:26:07 +01:00
committed by GitHub
parent bfa2486472
commit e29328cae3
16 changed files with 61 additions and 26 deletions

View File

@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
export default function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.1657.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.2015.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then((schema) =>

View File

@@ -42,7 +42,7 @@ import enigma from 'enigma.js';
export default function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.1657.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.2015.0.json').then((response) => response.json());
const localApp = '/apps/Ctrl-00.qvf';
const createConnection = () =>

View File

@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
export default function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.1657.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.2015.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then((schema) =>

View File

@@ -1,6 +1,6 @@
window.connect = function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.1657.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.2015.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then((schema) =>