mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Update inject.js (#346)
This commit is contained in:

committed by
Ilya Grigorik

parent
1718872d98
commit
4e96e57e7d
@@ -228,8 +228,11 @@ chrome.runtime.sendMessage({}, function(response) {
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
var docs = Array(document)
|
||||
if(inIframe())
|
||||
docs.push(window.top.document);
|
||||
try {
|
||||
if (inIframe())
|
||||
docs.push(window.top.document);
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
docs.forEach(function(doc) {
|
||||
doc.addEventListener('keydown', function(event) {
|
||||
|
Reference in New Issue
Block a user