Skip to content

Commit

Permalink
streamable bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extesy committed Feb 15, 2024
1 parent 497fad7 commit c07071a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions js/hoverzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -3615,7 +3615,7 @@ var hoverZoom = {

// Simulates a mousemove event to force a zoom call
displayPicFromElement:function (el, force) {
if (force) {
if (el.filter(':hover').length > 0 || force) {
hoverZoom.currentLink = el;
$(document).mousemove();
}
Expand Down Expand Up @@ -3778,8 +3778,8 @@ var hoverZoom = {
}

var handleSrc = function (src) {
if (src)
hoverZoom.prepareLink(link, src);
if (src)
hoverZoom.prepareLink(link, src);
};

if (isAsync) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_extName__",
"short_name": "__MSG_extShortName__",
"version": "1.0.214.1",
"version": "1.0.214.2",
"description": "__MSG_extDescription__",
"homepage_url": "https://github.com/extesy/hoverzoom/",
"author": "Oleg Anashkin",
Expand Down
2 changes: 1 addition & 1 deletion plugins/streamable_a.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hoverZoomPlugins.push({
if (!options.zoomVideos) return;
$('a[href*="//streamable.com/"]').one('mouseenter', function () {
hoverZoom.prepareFromDocument($(this), this.href, function(doc) {
return doc.querySelector('video').getAttribute('src');
return doc.head.querySelector('meta[property="og:video:url"][content]').content;
});
});
}
Expand Down

0 comments on commit c07071a

Please sign in to comment.