Documentation Center

Force Clear Aimtell Worker

How to force clear the Aimtell worker.

Sometimes when uninstalling Aimtell you may notice some lingering errors in the Developer Console regarding the "aimtell-worker.js". This will not impact your website and is a normal byproduct of how the core technology behind Aimtell and Website Push Notifications work.

While this will resolve itself automatically over the course of a few days, you may force fix this issue by placing the following snippet of code on your website.

<!-- force remove Aimtell service worker -->
<script> try{ if ('serviceWorker' in navigator) { navigator.serviceWorker.getRegistrations().then(function(registrations) { for(let registration of registrations) { if( &&"aimtell")){ console.log("Removing Aimtell Worker:",; registration.unregister(); } } }) } } catch(err){ console.log(err); } </script>
<!-- force remove Aimtell service worker -->