From 9abc8910063f14dee0be1da51346153ed51bc8f2 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Sat, 17 Jun 2023 01:35:24 +0300 Subject: [PATCH] change html url bug WIP --- src/record_io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/record_io.js b/src/record_io.js index ca1eaea..d418ee3 100644 --- a/src/record_io.js +++ b/src/record_io.js @@ -4,10 +4,10 @@ import {set_record_call} from './runtime.js' let cxt export const set_current_context = _cxt => { - const should_apply_io_patches = cxt == null || cxt.window != _cxt.window cxt = _cxt - if(should_apply_io_patches) { + if(!cxt.window.__is_io_pached) { apply_io_patches() + cxt.window.__is_io_pached = true } }