Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Layerex committed Dec 25, 2021
1 parent fc7f42c commit d38f1a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,11 @@ function getCurrentlyPlayingVideo() {

document.addEventListener(
"keydown",
function(e) {
function (e) {
if (
(window.navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) &&
e.keyCode == 83
) {

let downloadUrl = null;
if (getCurrentElement.hasOwnProperty(window.location.hostname)) {
downloadUrl = getCurrentElement[window.location.hostname]();
Expand All @@ -133,7 +132,7 @@ document.addEventListener(
if (downloadUrl !== null) {
e.preventDefault();
if (downloadUrl !== "") {
chrome.extension.sendMessage({ url: downloadUrl }, function() { });
chrome.extension.sendMessage({ url: downloadUrl }, function () {});
}
}
}
Expand Down

0 comments on commit d38f1a2

Please sign in to comment.