Skip to content

Commit

Permalink
πŸ‘Œ IMPROVE: Use import.meta instead of deprecated process.server
Browse files Browse the repository at this point in the history
  • Loading branch information
valgeirb committed Feb 17, 2024
1 parent 1138737 commit fe6dca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useFathom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { EventOptions, PageViewOptions } from "fathom-client";

function safeFathomCall<T extends (...args: any[]) => any>(fathomFunction: T) {
return (...args: Parameters<T>) => {
if (!process.server) {
if (import.meta.client) {
return fathomFunction(...args);
}
};
Expand Down

0 comments on commit fe6dca3

Please sign in to comment.