Skip to content

Commit

Permalink
好好好
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed May 5, 2024
1 parent 8b17ad7 commit f6bab07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions branch/latest/md5.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const assets_data = {
};

const run_env = {
from_code: typeof window == "undefined",
is_node: typeof Bun == "undefined",
is_bun: typeof Bun != "undefined",
from_code: typeof window === "undefined",
is_node: typeof Bun === "undefined",
is_bun: typeof Bun !== "undefined",
cli_args: [],
};

Expand Down Expand Up @@ -185,7 +185,7 @@ if (run_env.from_code) {
querySelector(tag) {
// 搜索一下有没有这个元素
for (let i = 0; i < this.childList.length; i++) {
if (this.childList[i].tag == tag) {
if (this.childList[i].tag === tag) {
return this.childList[i];
}
}
Expand All @@ -210,7 +210,7 @@ if (run_env.from_code) {
// 搜索一下有没有这个元素
logger.debug("querySelector", tag);
for (let i = 0; i < stored_elements.length; i++) {
if (stored_elements[i].tag == tag) {
if (stored_elements[i].tag === tag) {
return stored_elements[i];
}
}
Expand Down

0 comments on commit f6bab07

Please sign in to comment.