Bug 1718860 - Adds null check for button. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119032
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user