Skip to content

Commit

Permalink
fix: use Object.assign for older browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 29, 2021
1 parent 68cd612 commit e6b2f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ApiProxy<TTarget extends DevtoolsPluginApi<any> = DevtoolsPluginApi
}
}
const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`
let currentSettings = { ...defaultSettings }
let currentSettings = Object.assign({}, defaultSettings)
try {
const raw = localStorage.getItem(localSettingsSaveId)
const data = JSON.parse(raw)
Expand Down

0 comments on commit e6b2f05

Please sign in to comment.