-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
36 lines (31 loc) · 1.03 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function continueFunction() {
alert("It is submitted");
}
// main.js
fetch('package.json')
.then(response => response.json())
.then(errorData => {
// Use the errorData object
const errorMessage = errorData.MessageToShow;
alert(errorMessage);
if (errorData.NextAction.Action === 7) {
console.log("Performing Close action");
}
// Log the error details to the console
console.log("Error Details:", errorData);
})
.catch(error => console.error('Error loading JSON:', error));
// main.js
fetch('package.json')
.then(response => response.json())
.then(errorData => {
// Use the errorData object
const errorMessage = errorData.MessageToShow;
alert(errorMessage);
if (errorData.NextAction.Action === 7) {
console.log("Performing Close action");
}
// Log the error details to the console
console.log("Error Details:", errorData);
})
.catch(error => console.error('Error loading JSON:', error));