Adjusted self referencing approach in resources object

Changed self references in resources object to now access the current
resource in preparation for future caching system
This commit is contained in:
amarcu5
2017-05-30 21:53:42 +01:00
parent 38246929a9
commit 26eee5b440
3 changed files with 3 additions and 3 deletions
Binary file not shown.
+2 -2
View File
@@ -164,7 +164,7 @@ const resources = {
},
buttonScale: 0.7,
buttonDidAppear: function() {
resources['hulu'].buttonParent().querySelector('.progress-bar-tracker').style.width = 'calc(100% - 380px)';
currentResource.buttonParent().querySelector('.progress-bar-tracker').style.width = 'calc(100% - 380px)';
},
videoElement: function() {
return document.getElementById('content-video-player');
@@ -236,7 +236,7 @@ const resources = {
},
buttonStyle: 'position:absolute;right:0;top:0;width:2em;height:100%;cursor:pointer;background-color:#262626',
buttonDidAppear: function() {
resources['netflix'].buttonParent().style.paddingRight = '50px';
currentResource.buttonParent().style.paddingRight = '50px';
},
videoElement: function() {
const e = document.querySelector('.player-video-wrapper');
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<key>CFBundleVersion</key>
<string>30</string>
<string>31</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>