mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
handlers/wombat: pass in mod to wombat, ability to customize modifier
for embeds
This commit is contained in:
parent
9b64194342
commit
67e94d13f4
@ -708,11 +708,11 @@ WB_wombat_init = (function() {
|
||||
}
|
||||
|
||||
//============================================
|
||||
function wombat_init(replay_prefix, capture_date, orig_scheme, orig_host, timestamp) {
|
||||
function wombat_init(replay_prefix, capture_date, orig_scheme, orig_host, timestamp, mod) {
|
||||
wb_replay_prefix = replay_prefix;
|
||||
|
||||
if (wb_replay_prefix) {
|
||||
wb_replay_date_prefix = replay_prefix + capture_date + "/";
|
||||
wb_replay_date_prefix = replay_prefix + capture_date + mod + "/";
|
||||
|
||||
if (capture_date.length > 0) {
|
||||
wb_capture_date_part = "/" + capture_date + "/";
|
||||
|
@ -74,8 +74,8 @@ class SearchPageWbUrlHandler(WbUrlHandler):
|
||||
|
||||
return self.handle_request(wbrequest)
|
||||
|
||||
def get_top_frame_params(self, wbrequest):
|
||||
embed_url = wbrequest.wb_url.to_str(mod='')
|
||||
def get_top_frame_params(self, wbrequest, mod=''):
|
||||
embed_url = wbrequest.wb_url.to_str(mod=mod)
|
||||
|
||||
if wbrequest.wb_url.timestamp:
|
||||
timestamp = wbrequest.wb_url.timestamp
|
||||
|
Loading…
x
Reference in New Issue
Block a user