mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -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);
|
document.head.appendChild(link);
|
||||||
}
|
}
|
||||||
var docs = Array(document)
|
var docs = Array(document)
|
||||||
if(inIframe())
|
try {
|
||||||
docs.push(window.top.document);
|
if (inIframe())
|
||||||
|
docs.push(window.top.document);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
|
||||||
docs.forEach(function(doc) {
|
docs.forEach(function(doc) {
|
||||||
doc.addEventListener('keydown', function(event) {
|
doc.addEventListener('keydown', function(event) {
|
||||||
|
Reference in New Issue
Block a user