Skip to content

Commit

Permalink
Add isExtension util function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewoook committed Aug 10, 2022
1 parent c744361 commit e91f188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ export const getRuntime = (): Runtime => {
}
return "unknown";
};

export const isExtension = () => getRuntime() === "extension";

0 comments on commit e91f188

Please sign in to comment.