OpenInsightApplicationProgrammingInterface
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
console.log(appSettings.OpenInsightApplicationProgrammingInterface);
|
||||
|
||||
var connection = new signalR.HubConnectionBuilder()
|
||||
.withUrl("/NotificationHub")
|
||||
.build();
|
||||
@ -35,12 +37,9 @@ connection.on("NotifyAll", function (data) {
|
||||
if (postResult.Recipe != "Recipe") {
|
||||
document.getElementById("recipe").innerText = postResult.Recipe;
|
||||
} else {
|
||||
$.getJSON(
|
||||
"https://oi-prod-ec-api.mes.infineon.com/api/oiWizard/materials/rds/" +
|
||||
postResult.LotName,
|
||||
$.getJSON(appSettings.OpenInsightApplicationProgrammingInterface + "/materials/rds/" + postResult.LotName,
|
||||
function (data) {
|
||||
document.getElementById("recipe").innerText =
|
||||
data.rds.rdsLayers.length;
|
||||
document.getElementById("recipe").innerText = data.rds.rdsLayers.length;
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -50,7 +49,7 @@ connection.on("NotifyAll", function (data) {
|
||||
|
||||
connection
|
||||
.start()
|
||||
.then(function () {})
|
||||
.then(function () { })
|
||||
.catch(function (err) {
|
||||
return console.error(err.toString());
|
||||
});
|
||||
|
Reference in New Issue
Block a user