videocontext
Advanced tools
Comparing version 0.50.2 to 0.50.3
{ | ||
"name": "videocontext", | ||
"version": "0.50.2", | ||
"version": "0.50.3", | ||
"description": "A WebGL & HTML5 graph based video composition library", | ||
@@ -5,0 +5,0 @@ "keywords":["video", "context", "composition", "timeline", "html5", "webgl"], |
@@ -1,2 +0,8 @@ | ||
const stripHash = url => `${url.protocol}//${url.hostname}:${url.port}${url.pathname}`; | ||
function stripHash (url){ | ||
if (url.port === "" || url.port === undefined){ | ||
return `${url.protocol}//${url.hostname}${url.pathname}`; | ||
} else { | ||
return `${url.protocol}//${url.hostname}:${url.port}${url.pathname}`; | ||
} | ||
} | ||
@@ -43,5 +49,2 @@ class VideoElementCache { | ||
for (let element of this._elements) { | ||
console.log(window.location); | ||
console.log(stripHash(window.location)); | ||
console.log(element.src); | ||
// For some reason an uninitialised videoElement has its sr attribute set to the windows href. Hence the below check. | ||
@@ -48,0 +51,0 @@ if ((element.src === "" || element.src === undefined || element.src === stripHash(window.location)) && element.srcObject == null )return element; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6323804
21306