Skip to content

Commit d5dd168

Browse files
authored
chore: Remove unused constructor and export (#83)
1 parent 9d74196 commit d5dd168

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/web.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ export class NativeAudioWeb extends WebPlugin implements NativeAudio {
1010
private static readonly FILE_LOCATION: string = 'assets/sounds';
1111
private static readonly AUDIO_ASSET_BY_ASSET_ID: Map<string, AudioAsset> = new Map<string, AudioAsset>();
1212

13-
constructor() {
14-
super({
15-
name: 'NativeAudio',
16-
platforms: ['web'],
17-
});
18-
}
19-
2013
async resume(options: { assetId: string; }): Promise<void> {
2114
const audio: HTMLAudioElement = this.getAudioAsset(options.assetId).audio;
2215
if (audio.paused) {
@@ -132,7 +125,3 @@ export class NativeAudioWeb extends WebPlugin implements NativeAudio {
132125
}
133126
}
134127

135-
const NativeAudio = new NativeAudioWeb();
136-
137-
export { NativeAudio };
138-

0 commit comments

Comments
 (0)