1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-24 06:59:52 +01:00

Merge branch 0.6.6 into video

This commit is contained in:
Ilya Kreymer 2014-12-14 15:36:14 -08:00
commit 0de76189a7
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,8 @@ Video/streaming content replay and buffering improvements!
pywb 0.6.6 changelist pywb 0.6.6 changelist
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
* JS client side improvements: check for double-inits, preserve anchor in wb.js top location redirect
* JS Rewriters: add mixins for link + location (default), link only, location only rewriting by setting ``js_rewrite_location`` to ``all``, ``urls``, ``location``, respectively. * JS Rewriters: add mixins for link + location (default), link only, location only rewriting by setting ``js_rewrite_location`` to ``all``, ``urls``, ``location``, respectively.
(New: location only rewriting does not change JS urls) (New: location only rewriting does not change JS urls)
@ -34,7 +36,6 @@ pywb 0.6.5 changelist
* cdx-indexer: Detect non-gzip chunk encoded .warc.gz/arc.gz archive files and show a meaningful * cdx-indexer: Detect non-gzip chunk encoded .warc.gz/arc.gz archive files and show a meaningful
error message explaining how to fix issue (uncompress and possibly use warctools warc2warc to recompress) error message explaining how to fix issue (uncompress and possibly use warctools warc2warc to recompress)
>>>>>>> develop
pywb 0.6.4 changelist pywb 0.6.4 changelist

View File

@ -129,11 +129,13 @@ this.load = function() {
if ((window.self == window.top) && wbinfo) { if ((window.self == window.top) && wbinfo) {
var hash = window.location.hash;
var loc = window.location.href.replace(window.location.hash, ""); var loc = window.location.href.replace(window.location.hash, "");
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
window.location.replace(wbinfo.top_url); window.location.replace(wbinfo.top_url + hash);
} else { } else {
// Init Banner (no frame or top frame) // Init Banner (no frame or top frame)
add_event("readystatechange", init_banner, document); add_event("readystatechange", init_banner, document);