mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-17 05:20:01 -04:00
t
This commit is contained in:
parent
82f5f76588
commit
2c06fed426
25 changed files with 1131 additions and 604 deletions
|
@ -95,6 +95,18 @@ class LocationApi {
|
|||
});
|
||||
};
|
||||
|
||||
if ('ancestorOrigins' in this.location) {
|
||||
this.ctx.nativeMethods.defineProperty(emulation, 'ancestorOrigins', {
|
||||
get() {
|
||||
const arr = [];
|
||||
if (that.window.DOMStringList) that.ctx.nativeMethods.setPrototypeOf(arr, that.window.DOMStringList.prototype);
|
||||
return arr;
|
||||
},
|
||||
set: undefined,
|
||||
enumerable: true,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
this.ctx.nativeMethods.defineProperty(emulation, 'toString', {
|
||||
value: this.ctx.wrap(this.location, 'toString', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue