1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3784 from node-red/remove-hasown

Remove use of Object.hasOwn
This commit is contained in:
Nick O'Leary 2022-07-21 11:36:56 +01:00 committed by GitHub
commit 96eb8719b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4906,7 +4906,7 @@ RED.view = (function() {
if (d._def.button) {
var buttonEnabled = isButtonEnabled(d);
this.__buttonGroup__.classList.toggle("red-ui-flow-node-button-disabled", !buttonEnabled);
if (RED.runtime && Object.hasOwn(RED.runtime,'started')) {
if (RED.runtime && RED.runtime.started !== undefined) {
this.__buttonGroup__.classList.toggle("red-ui-flow-node-button-stopped", !RED.runtime.started);
}