Skip to content

Commit

Permalink
fix(skymp5-client): vanish AuthService-produced hot reload (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Jul 1, 2024
1 parent fc574e1 commit 395442d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions skymp5-client/src/services/services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ export class AuthService extends ClientListener {
logTrace(this, `Reading`, this.pluginAuthDataName, `from disk`);

try {
const data = this.sp.getPluginSourceCode(this.pluginAuthDataName);
// @ts-expect-error
const data = this.sp.getPluginSourceCode(this.pluginAuthDataName, "PluginsNoLoad");

if (!data) {
logTrace(this, `Read empty`, this.pluginAuthDataName, `returning null`);
Expand All @@ -347,7 +348,9 @@ export class AuthService extends ClientListener {
try {
this.sp.writePlugin(
this.pluginAuthDataName,
content
content,
// @ts-expect-error
"PluginsNoLoad"
);
}
catch (e) {
Expand Down

0 comments on commit 395442d

Please sign in to comment.