Documentation Center

Joining the Aimtell Service Worker and your existing service worker into one file

You can join the Aimtell Service Worker and your existing service worker into one file by leveraging “importScripts”.

Simply open the existing aimtell-worker.js file provided in your Aimtell dashboard and add specify your existing service worker file like this:

importScripts(‘/your-existing-worker.js’);
importScripts(’https://cdn.aimtell.com/sdk/aimtell-worker-sdk.js');