From 365e9ed9db65a557f2d64b9a0c4821d0408e59cd Mon Sep 17 00:00:00 2001 From: m5r Date: Wed, 13 Sep 2023 17:16:01 +0200 Subject: [PATCH] remove code fixed by enketo/enketo-core#817 --- webapp/src/ts/services/enketo.service.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/webapp/src/ts/services/enketo.service.ts b/webapp/src/ts/services/enketo.service.ts index 4026d025b96..62868cded91 100644 --- a/webapp/src/ts/services/enketo.service.ts +++ b/webapp/src/ts/services/enketo.service.ts @@ -241,7 +241,6 @@ export class EnketoService { window.history.pushState({ enketo_page_number: currentIndex }, ''); } this.setupNavButtons($wrapper, currentIndex); - this.pauseMultimedia($wrapper); } this.forceRecalculate(form); }); @@ -264,18 +263,10 @@ export class EnketoService { this.setupNavButtons($wrapper, pageIndex); this.forceRecalculate(form); - this.pauseMultimedia($wrapper); return false; }); } - // This code can be removed once this issue is fixed: https://github.com/enketo/enketo-core/issues/816 - private pauseMultimedia($wrapper) { - $wrapper - .find('audio, video') - .each((idx, element) => element.pause()); - } - private addPopStateHandler(form, $wrapper) { $(window).on('popstate.enketo-pagemode', (event: any) => { if (event.originalEvent &&