Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 6c0f2c7

Browse files
Fixed server side check. (#10)
1 parent 513fc3a commit 6c0f2c7

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

dist/simplr-logger-handlers.js

Lines changed: 21 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/simplr-logger-handlers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/handlers/file-message-handler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export class FileMessageHandler extends MessageHandlerBase {
1414
...configuration
1515
};
1616

17-
if (!this.configuration.IsServerSide) {
17+
if (this.configuration.IsServerSide) {
18+
// tslint:disable-next-line:no-require-imports
19+
const { normalize } = require("path") as typeof pathTypesOnly;
20+
this.filePathName = normalize(filePathName);
1821
this.ensureDirectory();
1922
}
2023
}

0 commit comments

Comments
 (0)