mirror of
https://github.com/pysunday/sdenv.git
synced 2025-04-12 03:37:16 +08:00
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
const sdenv = require('sdenv-extend').sdenv();
|
|
const window = sdenv.memory.sdWindow;
|
|
|
|
Object.defineProperty(window.location, 'replace', {
|
|
...Object.getOwnPropertyDescriptor(window.location, 'replace'),
|
|
writable: false,
|
|
value: function(url) {
|
|
sdenv.tools.exit({ url });
|
|
}
|
|
});
|