Improved LittleThings support

Moved PiP mode button left of the Full screen button and fixed bug that
occasionally prevents button from showing
This commit is contained in:
amarcu5
2017-08-08 19:45:45 +01:00
parent b34d045489
commit b6cf44e95e
3 changed files with 6 additions and 5 deletions
Binary file not shown.
+5 -4
View File
@@ -328,14 +328,15 @@ const resources = {
'littlethings': {
buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo',
buttonElementType: 'div',
buttonInsertBefore: function(/** Element */ parent) {
return parent.lastChild;
},
buttonParent: function() {
const e = document.getElementById('player');
return e && e.querySelector('.jw-controlbar-right-group');
return document.querySelector('.jw-controlbar-right-group');
},
buttonStyle: 'width:38px',
videoElement: function() {
const e = document.getElementById('player');
return e && e.querySelector('video.jw-video');
return document.querySelector('video.jw-video');
},
},
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.2.1</string>
<key>CFBundleVersion</key>
<string>57</string>
<string>58</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>