mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
refactor: update engine schema version (#727)
This commit is contained in:
committed by
GitHub
parent
72a4e3c10a
commit
78a4140665
@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
|
||||
|
||||
export default function connect() {
|
||||
const loadSchema = () =>
|
||||
fetch('https://unpkg.com/enigma.js/schemas/12.612.0.json').then((response) => response.json());
|
||||
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
|
||||
|
||||
const createConnection = () =>
|
||||
loadSchema().then((schema) =>
|
||||
|
||||
@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
|
||||
|
||||
export default function connect() {
|
||||
const loadSchema = () =>
|
||||
fetch('https://unpkg.com/enigma.js/schemas/12.612.0.json').then((response) => response.json());
|
||||
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
|
||||
|
||||
const createConnection = () =>
|
||||
loadSchema().then((schema) =>
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
window.connect = function connect() {
|
||||
const loadSchema = () => fetch('https://unpkg.com/enigma.js/schemas/3.2.json').then(response => response.json());
|
||||
const loadSchema = () =>
|
||||
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
|
||||
|
||||
const createConnection = () =>
|
||||
loadSchema().then(schema =>
|
||||
loadSchema().then((schema) =>
|
||||
window.enigma
|
||||
.create({
|
||||
schema,
|
||||
url: `ws://${window.location.hostname || 'localhost'}:9076/app/${Date.now()}`,
|
||||
})
|
||||
.open()
|
||||
.then(qix => qix.createSessionApp())
|
||||
.then((qix) => qix.createSessionApp())
|
||||
);
|
||||
|
||||
return createConnection().then(app =>
|
||||
return createConnection().then((app) =>
|
||||
app
|
||||
.setScript(
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user