Browse Source

clone the options object before processing frames

Gildas 7 năm trước cách đây
mục cha
commit
2351f1a489
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      lib/single-file/frame-tree.js

+ 1 - 0
lib/single-file/frame-tree.js

@@ -36,6 +36,7 @@ this.FrameTree = this.FrameTree || (() => {
 	return FrameTree;
 
 	async function getFramesData(options) {
+		options = JSON.parse(JSON.stringify(options));
 		options.sessionId = sessionId;
 		sessionId++;
 		return new Promise(resolve => {