Skip to content

Commit

Permalink
feat(deps): upgrade playemjs to get rid of flash/swfobject (#317)
Browse files Browse the repository at this point in the history
Because Flash is a thing of the past!
  • Loading branch information
adrienjoly committed Mar 28, 2020
1 parent 5a08caa commit f2a0ce6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
14 changes: 3 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"iconv": ">=2.0.6",
"mongodb": "^2.2.33",
"object-sizeof": "^1.3.0",
"playemjs": "1.0.0-rc.1",
"playemjs": "1.0.0-rc.2",
"q-set": "^2.0.8",
"request": "2.88.0"
},
Expand Down
10 changes: 2 additions & 8 deletions public/js/playem-all.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* playemjs 1.0.0-rc.1, commit: 7abdfa8f27696b2ac8654676e8d04096a6b32dd2 */
/* playemjs 1.0.0-rc.2, commit: 663eb200b5f688025fa0d188394969917f6af210 */

// configuration

var DEFAULT_PLAY_TIMEOUT = 10000
window.USE_SWFOBJECT = true //! !window.swfobject; // ... to embed youtube flash player

window.$ = window.$ || function () { return window.$ }

Expand Down Expand Up @@ -952,12 +951,7 @@ function DailymotionPlayer(){
data: window.location.protocol+'//www.dailymotion.com/swf/'+this.embedVars.videoId+'?'+paramsQS,
innerHTML: paramsHTML
};
if (USE_SWFOBJECT) {
swfobject.embedSWF(embedAttrs.data, this.embedVars.playerId, embedAttrs.width, embedAttrs.height, "9.0.0", "/js/swfobject_expressInstall.swf", null, params, atts);
}
else {
$(this.element).attr(embedAttrs);
}
$(this.element).attr(embedAttrs);
$(this.element).show();
this.safeClientCall("onEmbedReady");
}
Expand Down
4 changes: 2 additions & 2 deletions public/js/playem-min.js

Large diffs are not rendered by default.

0 comments on commit f2a0ce6

Please sign in to comment.