Преглед изворни кода

clone the options object before processing frames

Gildas пре 7 година
родитељ
комит
2351f1a489
1 измењених фајлова са 1 додато и 0 уклоњено
  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 => {