Skip to content

Commit

Permalink
Merge pull request #73 from QuickCorp/v2.3
Browse files Browse the repository at this point in the history
Freezing objects is optional, CONFIG.set secureObjects = false to dis…
  • Loading branch information
jeanmachuca committed Jun 8, 2021
2 parents c05540f + b69fd3e commit 70ab776
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -4057,7 +4057,9 @@
Object.freeze(Object);
}
if (isBrowser && CONFIG.get("secureObjects", true)){
window.addEventListener("DOMContentLoaded", __freeze__);
Ready(function (){
__freeze__();
});
} else if (CONFIG.get("secureObjects", true)) {
__freeze__();
}
Expand Down

0 comments on commit 70ab776

Please sign in to comment.