@saooti/octopus-sdk 30.0.49 → 30.0.50

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.
package/README.md CHANGED
@@ -545,4 +545,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
545
545
  * 30.0.46 Param pour le soir
546
546
  * 30.0.47 Live error
547
547
  * 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
548
- * 30.0.49 Podcastmaker ProgressBar
548
+ * 30.0.49 Podcastmaker ProgressBar
549
+ * 30.0.50 Commentaires live
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.49",
3
+ "version": "30.0.50",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -66,7 +66,6 @@
66
66
  </template>
67
67
 
68
68
  <script lang="ts">
69
- import { IReCaptchaComposition, useReCaptcha } from 'vue-recaptcha-v3';
70
69
  import Constants from '../../../../public/config';
71
70
  import { state } from '../../../store/paramStore';
72
71
  import api from '@/api/initialize';
@@ -130,11 +129,9 @@ export default defineComponent({
130
129
  this.sendComment();
131
130
  return;
132
131
  }
133
- const iRecaptcha: IReCaptchaComposition|undefined = useReCaptcha();
134
- if(!iRecaptcha){return;}
135
- await iRecaptcha.recaptchaLoaded();
136
- const token = await iRecaptcha.executeRecaptcha('login');
137
132
  try {
133
+ await this.$recaptchaLoaded()
134
+ const token = await this.$recaptcha('login');
138
135
  this.sendError = false;
139
136
  const ok = await api.checkToken(token);
140
137
  if (!ok) {