Function isSafePWAEnv

  • EN: Detect the margin of Safety. Determine if it is a secure PWA environment that it can run.

    ZH: 判断是否是安全的 PWA 环境

    Usage:

    const ret = isSafePWAEnv();
    console.log(ret);

    Output:

    true
    

    Returns boolean

    true 是