mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
remove debug logging and spaces
This commit is contained in:
parent
0ddc490b8d
commit
26df8d7784
@ -145,8 +145,6 @@ this.load = function() {
|
|||||||
|
|
||||||
if (wbinfo.top_url && (loc != wbinfo.top_url) && wbinfo.mod != "bn_") {
|
if (wbinfo.top_url && (loc != wbinfo.top_url) && wbinfo.mod != "bn_") {
|
||||||
// Auto-redirect to top frame
|
// Auto-redirect to top frame
|
||||||
console.log(wbinfo.top_url);
|
|
||||||
console.log(loc);
|
|
||||||
window.location.replace(wbinfo.top_url + hash);
|
window.location.replace(wbinfo.top_url + hash);
|
||||||
} else {
|
} else {
|
||||||
// Init Banner (no frame or top frame)
|
// Init Banner (no frame or top frame)
|
||||||
|
@ -984,7 +984,7 @@ _WBWombat = (function() {
|
|||||||
|
|
||||||
if (window.parent == window.top) {
|
if (window.parent == window.top) {
|
||||||
window.parent = window;
|
window.parent = window;
|
||||||
|
|
||||||
// Disable frameElement also as this should be top frame
|
// Disable frameElement also as this should be top frame
|
||||||
if (Object.defineProperty) {
|
if (Object.defineProperty) {
|
||||||
Object.defineProperty(window, "frameElement", {value: undefined, configurable: false});
|
Object.defineProperty(window, "frameElement", {value: undefined, configurable: false});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user