Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed May 8, 2024
1 parent 27d4aca commit bbeff71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {version} from "node:process";
import {CheckResult} from "./check_result.js";

/**
Expand Down Expand Up @@ -69,7 +68,7 @@ export class Client {
this.baseUrl = new URL(url.endsWith("/") ? url : `${url}/`);
this.blog = blog;
this.isTest = options.isTest ?? false;
this.userAgent = options.userAgent ?? `Node.js/${version.slice(1)} | Akismet/${Client.#version}`;
this.userAgent = options.userAgent ?? `${navigator.userAgent} | Akismet/${Client.#version}`;
}

/**
Expand Down

0 comments on commit bbeff71

Please sign in to comment.