mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
change html url bug WIP
This commit is contained in:
@@ -4,10 +4,10 @@ import {set_record_call} from './runtime.js'
|
|||||||
let cxt
|
let cxt
|
||||||
|
|
||||||
export const set_current_context = _cxt => {
|
export const set_current_context = _cxt => {
|
||||||
const should_apply_io_patches = cxt == null || cxt.window != _cxt.window
|
|
||||||
cxt = _cxt
|
cxt = _cxt
|
||||||
if(should_apply_io_patches) {
|
if(!cxt.window.__is_io_pached) {
|
||||||
apply_io_patches()
|
apply_io_patches()
|
||||||
|
cxt.window.__is_io_pached = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user