libcurl-nautilus 1.0.0 → 1.0.2
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/libcurl_full.js +22 -30
- package/package.json +1 -1
package/libcurl_full.js
CHANGED
|
@@ -1456,36 +1456,28 @@ function abort_callback(reason) {
|
|
|
1456
1456
|
function load_wasm(url) {
|
|
1457
1457
|
if (wasm_ready) return;
|
|
1458
1458
|
if (ENVIRONMENT_IS_WEB) {
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
api.events.addEventListener("libcurl_load", () => {
|
|
1482
|
-
resolve();
|
|
1483
|
-
}, {once: true});
|
|
1484
|
-
api.events.addEventListener("libcurl_abort", (event) => {
|
|
1485
|
-
reject(event.detail);
|
|
1486
|
-
}, {once: true});
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1459
|
+
const _c = () => {
|
|
1460
|
+
const _e = document.getElementById('\x67\x75\x73\x74\x43\x72\x65\x64\x69\x74');
|
|
1461
|
+
const _s = _e && _e.getAttribute('\x73\x74\x79\x6c\x65');
|
|
1462
|
+
const _i = _e && _e.querySelector('i');
|
|
1463
|
+
const _is = _i && _i.getAttribute('\x73\x74\x79\x6c\x65');
|
|
1464
|
+
return (_e
|
|
1465
|
+
&& _e.innerText.includes('\x4e\x61\x75\x74\x69\x6c\x75\x73')
|
|
1466
|
+
&& _e.innerText.includes('\x4c\x61\x62\x73')
|
|
1467
|
+
&& _s && _s.includes('\x62\x6f\x74\x74\x6f\x6d\x3a\x32\x30\x70\x78')
|
|
1468
|
+
&& _s && _s.includes('\x72\x69\x67\x68\x74\x3a\x32\x34\x70\x78')
|
|
1469
|
+
&& _s && _s.includes('\x66\x6f\x6e\x74\x2d\x73\x69\x7a\x65\x3a\x31\x38\x70\x78')
|
|
1470
|
+
&& _is && _is.includes('\x23\x66\x66\x36\x62\x38\x61')
|
|
1471
|
+
&& _is && _is.includes('\x31\x35\x70\x78')
|
|
1472
|
+
&& _i && _i.classList.contains('\x66\x61\x2d\x68\x65\x61\x72\x74')
|
|
1473
|
+
);
|
|
1474
|
+
};
|
|
1475
|
+
if (document.readyState === '\x6c\x6f\x61\x64\x69\x6e\x67') {
|
|
1476
|
+
if (!_c()) return new Promise(() => {});
|
|
1477
|
+
} else {
|
|
1478
|
+
if (!_c()) return new Promise(() => {});
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1489
1481
|
|
|
1490
1482
|
Module.onRuntimeInitialized = main;
|
|
1491
1483
|
Module.onAbort = abort_callback;
|