all true triggers alert

This commit is contained in:
Mark Eaton 2023-07-22 01:54:58 -04:00
parent 132027e9d7
commit 75b04a9087
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ AFRAME.registerComponent('markerhandler', {
});
},
check: function (markers) {
if (Object.values(markers).every(Boolean) === true) {
if (Object.is(JSON.stringify(markers), JSON.stringify({ reference: true, circulation: true, photocopier: true })) == true) {
alert("all true")
}
},