import { isIE11 } from '../helpers/browser';

/**
 * This file is included in the main bundle. Its main purpose is to find out if the main bundle could execute,
 * or if it errored out due to a Syntax Error since the main bundle is only compiled against a specific list
 * of browsers. We also check some specific browsers here.
 * The unsupported.js script is included as another script tag and relies on this variable.
 */
const isNotSupported = () => {
    // If these function get polyfilled they'll exist, this is a safety mechanism for when we stop supporting it
    return isIE11() || !Object.fromEntries || !''.startsWith;
};

window.protonSupportedBrowser = !isNotSupported();

import { isIE11 } from '../helpers/browser';

/**
 * This file is included in the main bundle. Its main purpose is to find out if the main bundle could execute,
 * or if it errored out due to a Syntax Error since the main bundle is only compiled against a specific list
 * of browsers. We also check some specific browsers here.
 * The unsupported.js script is included as another script tag and relies on this variable.
 */
const isNotSupported = () => {
    // If these function get polyfilled they'll exist, this is a safety mechanism for when we stop supporting it
    return isIE11() || !Object.fromEntries || !''.trimStart;
};

window.protonSupportedBrowser = !isNotSupported();

Verify trimStart instead of startsWith
Verify trimStart instead of startsWith
