mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
minor fixes, copyright update
This commit is contained in:
parent
3322fb233f
commit
45972df6c4
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright(c) 2013-2014 Internet Archive / Ilya Kreymer. Released under the GNU General Public License.
|
Copyright(c) 2013-2014 Ilya Kreymer. Released under the GNU General Public License.
|
||||||
|
|
||||||
This file is part of pywb.
|
This file is part of pywb.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright(c) 2013-2014 Internet Archive / Ilya Kreymer. Released under the GNU General Public License.
|
Copyright(c) 2013-2014 Ilya Kreymer. Released under the GNU General Public License.
|
||||||
|
|
||||||
This file is part of pywb.
|
This file is part of pywb.
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ WB_wombat_init = (function() {
|
|||||||
// Adapted from:
|
// Adapted from:
|
||||||
// http://indiegamr.com/generate-repeatable-random-numbers-in-js/
|
// http://indiegamr.com/generate-repeatable-random-numbers-in-js/
|
||||||
|
|
||||||
Math.seed = seed;
|
Math.seed = parseInt(seed);
|
||||||
function seeded_random() {
|
function seeded_random() {
|
||||||
Math.seed = (Math.seed * 9301 + 49297) % 233280;
|
Math.seed = (Math.seed * 9301 + 49297) % 233280;
|
||||||
var rnd = Math.seed / 233280;
|
var rnd = Math.seed / 233280;
|
||||||
@ -275,8 +275,7 @@ WB_wombat_init = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (window.opener) {
|
if (window.opener) {
|
||||||
window.opener.WB_wombat_location = (window.opener ? copy_location_obj(window.opener.location)
|
window.opener.WB_wombat_location = copy_location_obj(window.opener.location);
|
||||||
: null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Domain
|
// Domain
|
||||||
@ -290,7 +289,7 @@ WB_wombat_init = (function() {
|
|||||||
init_ajax_rewrite();
|
init_ajax_rewrite();
|
||||||
|
|
||||||
// Random
|
// Random
|
||||||
init_seeded_random(timestamp);
|
init_seeded_random(timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check quickly after page load
|
// Check quickly after page load
|
||||||
|
Loading…
x
Reference in New Issue
Block a user