(function () {
    'use strict';

    var script = document.currentScript || document.getElementById('jusq-login-complete');
    var redirect = script ? script.getAttribute('data-redirect') : '';

    if (!redirect) redirect = '/';

    try {
        window.top.location.replace(redirect);
    } catch (error) {
        window.location.replace(redirect);
    }
}());
