Inconsistent behaviour with workbox-window.update()

Platform “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36″ Workbox version 5.0.0-rc.0 I am using the workbox-window update() method to trigger a service worker update check as described in workbox issue #2130. This question also seems related to observations made in workbox issue #2301. <script type=”module”> import {Workbox} from ‘https://storage.googleapis.com/workbox-cdn/releases/5.0.0-rc.0/workbox-window.prod.mjs’; if (‘serviceWorker’ in…

Change text but not the icon inside a button

I have a button with an icon as follows created with bootstrap and font-awesome <button id=”btnFavorite” class=”btn btn-warning pull-right” style=”margin-right: 5px;” onclick=”addToFavorites()”> <i id=”imgFavorite” class=”fa fa-star”></i> Favorite </button> With jQuery I want to update the text “Favorite” without touching the <i id=”imgFavorite” class=”fa fa-star”></i> part. When I check $(“#btnFavorite”).text(), I get “Favorite”, but when I…

jquery submit function that does not work

My jQuery function does not work and I do not know where the problem comes from here is my code: $(document).ready(function(){ console.log(“document prêt !!!”); $(“#f”).on(“submit”,function(e){ recuperer_valeur_reservation(); console.log(‘submit f1…’); }); }); The message from my console.log is not displayed in the browser, just the first console that appears as you can see here: message console here…