Przeglądaj źródła

clone the options object before processing frames

Gildas 7 lat temu
rodzic
commit
2351f1a489
1 zmienionych plików z 1 dodań i 0 usunięć
  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 => {