pinokiod 1.0.35 → 1.0.36
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/package.json +1 -1
- package/server/views/browser.ejs +8 -2
package/package.json
CHANGED
package/server/views/browser.ejs
CHANGED
|
@@ -511,9 +511,15 @@ const renderCursor = () => {
|
|
|
511
511
|
const nav = (type) => {
|
|
512
512
|
let targetFrame = document.querySelector("iframe:not(.hidden)")
|
|
513
513
|
if (type === "back") {
|
|
514
|
-
targetFrame.contentWindow.history.back()
|
|
514
|
+
// targetFrame.contentWindow.history.back()
|
|
515
|
+
targetFrame.contentWindow.postMessage({
|
|
516
|
+
action: "back"
|
|
517
|
+
}, "*")
|
|
515
518
|
} else if (type === "forward") {
|
|
516
|
-
targetFrame.contentWindow.history.forward()
|
|
519
|
+
// targetFrame.contentWindow.history.forward()
|
|
520
|
+
targetFrame.contentWindow.postMessage({
|
|
521
|
+
action: "forward"
|
|
522
|
+
}, "*")
|
|
517
523
|
}
|
|
518
524
|
|
|
519
525
|
|