Переглянути джерело

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 => {