Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit e3f93a9

Browse files
authored
Update gfyObject.js
Possible fix for muted
1 parent 7822ed2 commit e3f93a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/gfyObject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ var gfyObject = function (gfyElem, gfyIndex) {
149149
vid.controls = false;
150150
vid.style.width = '100%';
151151
vid.style.height = 'auto';
152-
vid.setAttribute('muted', 'muted');
152+
vid.muted = 'muted';
153153
// poster url gfyName is case sensitive
154154
vid.setAttribute('poster', 'https://thumbs.gfycat.com/' + gfyItem.gfyName + '-poster.jpg');
155155
source2 = document.createElement('source');

0 commit comments

Comments
 (0)