Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Sep 14, 2024
1 parent 8afc36a commit b33e0d0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/injections/AudioResolver.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { PluginInjector } from "../index";
import Modules from "../lib/requiredModules";
import { Sounds } from "../lib/consts";

export default async (): Promise<void> => {
const AudioResolver = await Modules.AudioResolverPromise;
PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => {
switch (sound) {
case `./${Sounds.Enable}.mp3`: {
return Sounds.EnableURL;
}
case `./${Sounds.Disable}.mp3`: {
return Sounds.DisableURL;
}
default:
if (AudioResolver.exports.keys().includes(sound)) {
return res(sound);
}
}
});
};
import { PluginInjector } from "../index";
import Modules from "../lib/requiredModules";
import { Sounds } from "../lib/consts";

export default async (): Promise<void> => {
const AudioResolver = await Modules.AudioResolverPromise;
PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => {
switch (sound) {
case `./${Sounds.Enable}.mp3`: {
return Sounds.EnableURL;
}
case `./${Sounds.Disable}.mp3`: {
return Sounds.DisableURL;
}
default:
if (AudioResolver.exports.keys().includes(sound)) {
return res(sound);
}
}
});
};

0 comments on commit b33e0d0

Please sign in to comment.