Skip to content

Commit

Permalink
Do not reset the override for the hooks as the detection should be ac…
Browse files Browse the repository at this point in the history
…curate enough
  • Loading branch information
korewaChino committed Sep 8, 2024
1 parent 4a7df8c commit 2eafa58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions assets/register-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const resolveRequest1 = (request, parent) => {
return napi;
};

const restoreOverride1 = overrideRequire(isOverride1, resolveRequest1);
overrideRequire(isOverride1, resolveRequest1);

let greenworks;
try {
Expand All @@ -118,8 +118,6 @@ try {
console.error(e);
}

restoreOverride1();

// console.log("Greenworks:", greenworks);

// === END FIRST PASS ===
Expand Down

0 comments on commit 2eafa58

Please sign in to comment.