mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Lookup baseURI getter on Node.prototype, not Node
Fix regression in baseURI override, spotted by the Karma tests. The getter should be looked up on Node.prototype, not Node.
This commit is contained in:
parent
cd2390333a
commit
f2fdbcc511
@ -762,7 +762,7 @@ var wombat_internal = function($wbwindow) {
|
||||
def_prop($wbwindow.HTMLBaseElement.prototype, "href", undefined, base_href_get);
|
||||
|
||||
// Shared baseURI
|
||||
var orig_getter = get_orig_getter($wbwindow.Node, "baseURI");
|
||||
var orig_getter = get_orig_getter($wbwindow.Node.prototype, "baseURI");
|
||||
if (orig_getter) {
|
||||
var get_baseURI = function() {
|
||||
var res = orig_getter.call(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user