-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathErrorReporting.js
36 lines (31 loc) · 990 Bytes
/
ErrorReporting.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
var robloxAppReport;
function updateRobloxError() {
var er = robloxAppReport.ErrorReporting;
if (er == 0) {
// Skip error reporting
return false;
}
if (robloxAppReport.HasErrorFiles) {
if (er == 1)
document.getElementById("ErrorReporting").style.display = "block";
else if (er == 2)
sendRobloxErrorFiles();
}
else {
document.getElementById("ErrorReporting").style.display = "none";
}
//document.getElementById("ErrorReportingThanks").style.display = robloxAppReport.IsUploadingErrorFiles ? "block" : "none";
return true;
}
function updateRobloxErrorTimer() {
if (updateRobloxError())
window.setTimeout("updateRobloxErrorTimer()", 1000);
}
try {
robloxAppReport = new ActiveXObject("Roblox.App");
robloxAppReport.IsUploadingErrorFiles; // Quick check that the API exists
window.setTimeout("updateRobloxErrorTimer()", 100);
}
catch (e) {
}