Skip to content

Commit

Permalink
fix: apply patch to opencv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ttt43ttt committed Aug 6, 2024
1 parent 7018ea1 commit 6bc153d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/opencv.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
exports["cv"] = cv;

if (typeof Module === 'undefined')
Module = {};
var Module = {};
return cv(Module);
}));

18 changes: 10 additions & 8 deletions dist/opencv.js.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
diff --git a/dist/opencv.js b/dist/opencv.js
index ec41b85..49c466a 100644
index 1be6d42..9971ab6 100644
--- a/dist/opencv.js
+++ b/dist/opencv.js
@@ -2,4 +2,4 @@
module.exports=cv;else if(typeof define==='function'&&define['amd'])
define([],function(){return cv;});else if(typeof exports==='object')
exports["cv"]=cv;if(typeof Module==='undefined')
-Module={};return cv(Module);}));
\ No newline at end of file
+var Module={};return cv(Module);}));
@@ -42,7 +42,7 @@ if (typeof exports === 'object' && typeof module === 'object')
exports["cv"] = cv;

if (typeof Module === 'undefined')
- Module = {};
+ var Module = {};
return cv(Module);
}));

\ No newline at end of file

0 comments on commit 6bc153d

Please sign in to comment.