opc-agent 4.0.21 → 4.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/studio-ui/index.html +8 -0
- package/package.json +1 -1
- package/src/studio-ui/index.html +8 -0
- package/tmp-js-test.js +1532 -0
|
@@ -910,6 +910,14 @@
|
|
|
910
910
|
</div>
|
|
911
911
|
|
|
912
912
|
<script>
|
|
913
|
+
// === Debug: catch all JS errors ===
|
|
914
|
+
window.onerror = function(msg, url, line, col, err) {
|
|
915
|
+
console.error('JS ERROR:', msg, 'at line', line, ':', col);
|
|
916
|
+
const d = document.createElement('div');
|
|
917
|
+
d.style.cssText = 'position:fixed;bottom:0;left:0;right:0;background:red;color:white;padding:8px;z-index:9999;font-size:12px;';
|
|
918
|
+
d.textContent = 'JS Error: ' + msg + ' (line ' + line + ')';
|
|
919
|
+
document.body.appendChild(d);
|
|
920
|
+
};
|
|
913
921
|
// === State ===
|
|
914
922
|
let templates = [];
|
|
915
923
|
let industries = [];
|
package/package.json
CHANGED
package/src/studio-ui/index.html
CHANGED
|
@@ -910,6 +910,14 @@
|
|
|
910
910
|
</div>
|
|
911
911
|
|
|
912
912
|
<script>
|
|
913
|
+
// === Debug: catch all JS errors ===
|
|
914
|
+
window.onerror = function(msg, url, line, col, err) {
|
|
915
|
+
console.error('JS ERROR:', msg, 'at line', line, ':', col);
|
|
916
|
+
const d = document.createElement('div');
|
|
917
|
+
d.style.cssText = 'position:fixed;bottom:0;left:0;right:0;background:red;color:white;padding:8px;z-index:9999;font-size:12px;';
|
|
918
|
+
d.textContent = 'JS Error: ' + msg + ' (line ' + line + ')';
|
|
919
|
+
document.body.appendChild(d);
|
|
920
|
+
};
|
|
913
921
|
// === State ===
|
|
914
922
|
let templates = [];
|
|
915
923
|
let industries = [];
|