Safari (iOS) override for callback

So if I read correctly, the correct method for correcting the callback error for safari devices is to create a local.overrides.js file

https://community.tt-rss.org/t/typeerror-window-requestidlecallback-is-not-a-function/1755/32

So I use the docker compose with an override. I created the local-overrides.js as a volume mount and when I exec to the container I can see the file in /var/www/html/tt-rss/themes-local

Anything else I can check, or need to set to get it to work?

Oh, is it themes.local or themes-local for the dir?

And I saw the update about the closing bracket

window.requestIdleCallback =
    window.requestIdleCallback ||
    function(cb) {
        var start = Date.now();
        return setTimeout(function() {
            cb({
                didTimeout: false,
                timeRemaining: function() {
                    return Math.max(0, 50 - (Date.now() - start));
                },
            });
        }, 1);
    };

window.cancelIdleCallback =
    window.cancelIdleCallback ||
    function(id) {
        clearTimeout(id);
    };
web-nginx:
    container_name: tt-rss-web
    networks:
      - tt-rss
      - caddy-proxy
    ports:
      - 8012:80
    volumes:
      - app:/var/www/html
      - /hdd/docker-data/tt-rss/themes-local:/var/www/html/tt-rss/themes.local

And my override file.

Should I, in edge, expect to see this .js being loaded? when I’ve logged in?

ha ha, so looks like it should have been a volume mount in the app container. Not web…