Skip to content

Commit

Permalink
Don't use given object as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 10, 2022
1 parent 1daab6c commit 682eb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webextensions/common/resizable-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let mResizableBoxCount = 0;
const mResizableBoxes = new Map();

export function init(sizes) {
mSizes = (sizes && typeof sizes == 'object') ? sizes : {};
mSizes = (sizes && typeof sizes == 'object') ? JSON.parse(JSON.stringify(sizes)) : {};

for (const splitter of document.querySelectorAll('hr.splitter')) {
const previousBox = findPreviousResizableBox(splitter);
Expand Down

0 comments on commit 682eb62

Please sign in to comment.