V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cathedrel
V2EX  ›  程序员

想知道 protonmail 的红色网络连接警告的出现逻辑,是什么连不上了才有这个现象?

  •  
  •   cathedrel · 339 天前 · 868 次点击
    这是一个创建于 339 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在特殊的网络环境下登录 protonmail ,网页上方有个显眼的红色提示,大概意思是说网络连接有问题,不过我可以正常登录并使用 protonmail 的所有功能



    但我还是希望网络显示一切正常,所以我特别想知道它显示这个提示的逻辑是什么? F12 我不会用,哪位大佬帮忙看一下?先谢谢了
    4 条回复    2023-05-25 12:14:26 +08:00
    SingeeKing
        1
    SingeeKing  
       339 天前   ❤️ 1
    navigator.onLine ?看看你的这个变量值是不是 true
    cathedrel
        2
    cathedrel  
    OP
       339 天前
    @SingeeKing 大佬,在哪里看?
    SingeeKing
        3
    SingeeKing  
       339 天前 via iPhone   ❤️ 1
    @cathedrel 浏览器控制台
    cathedrel
        4
    cathedrel  
    OP
       339 天前
    @SingeeKing 就是 F12 出来的那个东西吗?具体是个哪个? Inspector 、Console 、Debugger 、Network 等等,进哪个看?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3424 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 845ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.