mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix: deepfreeze check by prop (#5407)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
committed by
GitHub
parent
4036e15f5a
commit
49f06ca4b9
5
.changes/fix-tauri-pattern-freeze.md
Normal file
5
.changes/fix-tauri-pattern-freeze.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fixes `__TAURI_PATTERN__` object freeze.
|
||||
@@ -7,8 +7,8 @@
|
||||
const props = Object.getOwnPropertyNames(object)
|
||||
|
||||
for (const prop of props) {
|
||||
if (typeof object[name] === 'object') {
|
||||
__tauriDeepFreeze(object[name])
|
||||
if (typeof object[prop] === 'object') {
|
||||
__tauriDeepFreeze(object[prop])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user