Bug 1718860 - Adds null check for button. r=emalysz

Differential Revision: https://phabricator.services.mozilla.com/D119032
This commit is contained in:
Kajal Sah
2021-07-05 16:41:47 +00:00
parent 9f97269bc5
commit 76e9f0ae2f

View File

@@ -497,6 +497,10 @@ if (!screenshotsDisabled) {
let document = subj.document;
let button = document.getElementById("screenshot-button");
if (!button) {
return;
}
if (data == "true") {
button.setAttribute("disabled", "true");
} else {