odaptos_design_system 2.0.112 → 2.0.113

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.
@@ -13702,18 +13702,15 @@ display: flex;
13702
13702
  disabled: disabled,
13703
13703
  onClick: () => {
13704
13704
  if (url) {
13705
- // Ouvrir d'abord l'URL dans un nouvel onglet
13706
- const fullUrl = url.includes('https://') ? url : `https://${url}`;
13707
- const newWindow = window.open(fullUrl, '_blank');
13708
- // Ensuite ouvrir le PiP
13709
- if (newWindow) {
13710
- // Petit délai pour s'assurer que la nouvelle fenêtre est bien ouverte
13711
- setTimeout(() => {
13712
- openPiP().catch(error => {
13713
- console.error("Erreur lors de l'ouverture du PiP :", error);
13714
- });
13715
- }, 10000);
13716
- }
13705
+ openPiP().catch(error => {
13706
+ console.error("Erreur lors de l'ouverture du PiP :", error);
13707
+ });
13708
+ // Petit délai pour s'assurer que la nouvelle fenêtre est bien ouverte
13709
+ setTimeout(() => {
13710
+ // Ouvrir d'abord l'URL dans un nouvel onglet
13711
+ const fullUrl = url.includes('https://') ? url : `https://${url}`;
13712
+ window.open(fullUrl, '_blank');
13713
+ }, 10000);
13717
13714
  }
13718
13715
  }
13719
13716
  });