Merge pull request #2 from simevidas/master

Fixed full screen issue on Vimeo
This commit is contained in:
Ilya Grigorik
2014-03-03 16:19:27 -08:00

View File

@@ -65,10 +65,17 @@ chrome.extension.sendMessage({}, function(response) {
e.stopPropagation(); e.stopPropagation();
}, true); }, true);
// Prevent full screen mode on YouTube
container.addEventListener('dblclick', function(e) { container.addEventListener('dblclick', function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
}, true); }, true);
// Prevent full screen mode on Vimeo
container.addEventListener('mousedown', function(e) {
e.preventDefault();
e.stopPropagation();
}, true);
} }
function runAction(action) { function runAction(action) {