Skip to content

Commit 18ec1b5

Browse files
committed
The control options set to true.
1 parent a0a2350 commit 18ec1b5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

dist/grapesjs-plugin-sproutvideo.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grapesjs-plugin-sproutvideo",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "GrapesJS Plugin to extend the video funtionality to support Sprout Video",
55
"main": "dist/grapesjs-plugin-sproutvideo.min.js",
66
"scripts": {

src/components.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default (editor, config = {}) => {
3434
var prov = this.get('provider');
3535
var uri = this.parseUri(this.get('src'));
3636
var qr = uri.query;
37-
3837
switch (prov) {
3938
case 'sv':
4039
var embed = uri.pathname.split('embed').pop();
@@ -50,18 +49,15 @@ export default (editor, config = {}) => {
5049

5150
try {
5251
this.set('loop', JSON.parse(qr.loop) === true);
53-
5452
} catch (e) {
5553
this.set('loop', false);
5654
}
5755

5856
try {
5957
this.set('controls', JSON.parse(qr.bigPlayButton) === false);
60-
6158
} catch (e) {
62-
this.set('controls', true);
59+
this.set('controls', false);
6360
}
64-
6561
break;
6662
default:
6763
}

0 commit comments

Comments
 (0)