• Resolved ricctram

    (@ricctram)


    After uninstallation of your plugin i still see in the root these files:
    – abtf-pwa.debug.js
    – abtf-pwa.js
    – abtf-pwa-config.json

    Those files should be deleted manually?

    Then i’ve checked if you have a procedure for uninstalling but I’ve not found anything about it. So are there other files around that should be deleted?

    thank you
    regards
    riccardo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alex

    (@internetusromania)

    Hi, the same situation here after uninstallation, plus errors in Chrome Console:

    abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:7 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at abtf-pwa.js:7
        at <anonymous>
    (anonymous) @ abtf-pwa.js:7
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    6abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:7 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at abtf-pwa.js:7
        at <anonymous>
    (anonymous) @ abtf-pwa.js:7
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    2abtf-pwa.js:7 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at abtf-pwa.js:7
        at <anonymous>
    (anonymous) @ abtf-pwa.js:7
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    5abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:7 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at abtf-pwa.js:7
        at <anonymous>
    (anonymous) @ abtf-pwa.js:7
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    abtf-pwa.js:7 Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at abtf-pwa.js:7
        at <anonymous>
    (anonymous) @ abtf-pwa.js:7
    setTimeout (async)
    (anonymous) @ abtf-pwa.js:8
    Promise rejected (async)
    z @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:8
    H @ abtf-pwa.js:8
    (anonymous) @ abtf-pwa.js:12
    3abtf-pwa.js:8 Uncaught SyntaxError: Unexpected token < in JSON at position 0

    Im getting the same on my site after uninstalling. What’s the deal?

    Plugin Author optimalisatie

    (@optimalisatie)

    The PWA extension has been quickly added in a previous update. It will be improved in a next update of the plugin.

    Service workers reside in the client (browser) and without the plugin installed, there is nothing that the plugin can do to uninstall the service worker for visitors. It will require a manual action.

    To uninstall (unregister) the service worker you can manually delete the file abtf-pwa.js and use the following code on the website (in header.php):

    <script>
    if ('serviceWorker' in window.navigator) {
        try {
                navigator.serviceWorker.getRegistrations().then(function(registrations) {
                    if (registrations) {
                        registrations.forEach(function(registration) {
                            if (typeof registration.unregister === 'function') {
    
                                // verify script url
                                if (registration.active && registration.active.scriptURL) {
                                    if (!registration.active.scriptURL.match(/abtf-pwa/)) {
                                        return;
                                    }
                                }
    
                                registration.unregister();
                            }
                        });
                    }
                });
            } catch (e) {
    
            }
        }
    }
    </script>
    • This reply was modified 7 years, 3 months ago by optimalisatie.

    Thank you for the detailed support, is it safe to assume that after running this script it can be rmoved from the website after a period of days?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Files remain in root after uninstallation’ is closed to new replies.