speechrecorderng 2.23.8 → 2.23.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.23.8';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ByLm1vZHVsZS52ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvc3BlZWNocmVjb3JkZXJuZy9zcmMvbGliL3Nwci5tb2R1bGUudmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUMsUUFBUSxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFZFUlNJT049JzIuMjMuOCciXX0=
1
+ export const VERSION = '2.23.9';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ByLm1vZHVsZS52ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvc3BlZWNocmVjb3JkZXJuZy9zcmMvbGliL3Nwci5tb2R1bGUudmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUMsUUFBUSxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFZFUlNJT049JzIuMjMuOSciXX0=
@@ -9074,6 +9074,7 @@ class SpeechrecorderngComponent extends RecorderComponent {
9074
9074
  this.uploader.listener = (ue) => {
9075
9075
  this.uploadUpdate(ue);
9076
9076
  };
9077
+ //TODO Duplicate code in AudioRecorderComponent
9077
9078
  window.addEventListener('beforeunload', (e) => {
9078
9079
  console.debug("Before page unload event");
9079
9080
  if (this.ready()) {
@@ -11770,6 +11771,30 @@ class AudioRecorderComponent extends RecorderComponent {
11770
11771
  this.controlAudioPlayer = new AudioPlayer(audioContext, this.ar);
11771
11772
  }
11772
11773
  this.ar.controlAudioPlayer = this.controlAudioPlayer;
11774
+ //TODO Duplicate code in SpeechRecorderComponent
11775
+ window.addEventListener('beforeunload', (e) => {
11776
+ console.debug("Before page unload event");
11777
+ if (this.ready()) {
11778
+ return;
11779
+ }
11780
+ else {
11781
+ // all this attempts to customize the message do not work anymore (for security reasons)!!
11782
+ var message = "Please do not leave the page, until all recordings are uploaded!";
11783
+ alert(message);
11784
+ e = e || window.event;
11785
+ if (e) {
11786
+ e.returnValue = message;
11787
+ e.cancelBubble = true;
11788
+ if (e.stopPropagation) {
11789
+ e.stopPropagation();
11790
+ }
11791
+ if (e.preventDefault) {
11792
+ e.preventDefault();
11793
+ }
11794
+ }
11795
+ return message;
11796
+ }
11797
+ });
11773
11798
  }
11774
11799
  ngAfterViewInit() {
11775
11800
  this.route.queryParams.subscribe((params) => {
@@ -11898,7 +11923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
11898
11923
  }]
11899
11924
  }] });
11900
11925
 
11901
- const VERSION = '2.23.8';
11926
+ const VERSION = '2.23.9';
11902
11927
 
11903
11928
  /*
11904
11929
  * Public API Surface of speechrecorderng