summarylogtreecommitdiffstats
path: root/itch.patch
blob: 9d5d986323d10e262985c9ada504154f43748593 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--- a/resources/app/dist/main/main.bundle.js	2022-03-07 18:24:14.543518719 -0500
+++ b/resources/app/dist/main/main.bundle.js	2022-03-07 18:36:09.803727617 -0500
@@ -37530,7 +37530,7 @@
             return;
         }
         withWebContents(store, wind, tab, async (wc) => {
-            const webUrl = wc.history[wc.currentIndex];
+            const webUrl = "";
             if (webUrl !== url) {
                 logger.debug(`WebContents has\n--> ${webUrl}\ntab evolved to\n--> ${url}\nlet's load`);
                 loadURL(wc, url);
@@ -37622,12 +37622,12 @@
         }));
     };
     let printWebContentsHistory = (previousIndex) => {
-        if (wc.history.length === 0) {
+        if (0 === 0) {
             logger.debug(`(The webcontents history are empty for some reason)`);
         }
         else {
             logger.debug("WebContents history:");
-            for (let i = 0; i < wc.history.length; i++) {
+            for (let i = 0; i < 0; i++) {
                 let prevMark = i === previousIndex ? "<" : " ";
                 let pendMark = i === wc.pendingIndex ? "P" : " ";
                 let currMark = i === wc.currentIndex ? ">" : " ";
@@ -37654,7 +37654,7 @@
     ) => {
         if (wc.currentIndex < 0) {
             // We get those spurious events after a "clear history & loadURL()"
-            // at this point `wc.history.length` is 0 anyway, so it's not like we
+            // at this point `0` is 0 anyway, so it's not like we
             // can figure out much. They're followed by a meaningful event shortly after.
             logger.debug(`Ignoring commit with negative currentIndex`);
             return;
@@ -37662,7 +37662,7 @@
         let { previousIndex, previousHistorySize } = previousState;
         previousState = {
             previousIndex: wc.currentIndex,
-            previousHistorySize: wc.history.length,
+            previousHistorySize: 0,
         };
         const space = common_helpers_space__WEBPACK_IMPORTED_MODULE_2__[/* Space */ "a"].fromStore(store, wind, tab);
         const stateHistory = space.history();
@@ -37700,7 +37700,7 @@
             });
         }
         let offset = wc.currentIndex - previousIndex;
-        let sizeOffset = wc.history.length - previousHistorySize;
+        let sizeOffset = 0 - previousHistorySize;
         if (sizeOffset === 1) {
             logger.debug(`History grew one, offset is ${offset}`);
             if (stateURL === url) {
@@ -47618,4 +47618,4 @@
 
 /***/ })
 /******/ ]);
-//# sourceMappingURL=main.bundle.js.map
\ No newline at end of file
+//# sourceMappingURL=main.bundle.js.map