Compare commits

..

2 commits

Author SHA1 Message Date
j
ffeee38d7d remove facebook spam from url 2020-05-31 10:49:50 +02:00
j
48a3043a79 initial playback rate 2020-04-29 14:22:01 +02:00
2 changed files with 4 additions and 0 deletions

View file

@ -809,7 +809,10 @@ Ox.URL = function(options) {
}
function parseURL(str, callback) {
// remove facebook spam
str = str.replace(/\?fbclid=[A-Za-z0-9_]+/, '')
// fixme: removing trailing slash makes it impossible to search for '/'
var split = str.split('#'),
parts = split.shift().replace(/(^\/|\/$)/g, '').split('/'),
state = split.length && split[0].length

View file

@ -402,6 +402,7 @@ Ox.VideoTimelinePlayer = function(options, self) {
height: self.tileHeight,
muted: self.options.muted,
paused: self.options.paused,
playbackRate: self.options.playbackRate,
position: self.options.position,
scaleToFill: true,
video: self.options.video,