我有 woedpress 网站,在 PageSpeed Insights 中我收到“
StorageType.persistent
已弃用。请改用标准化 navigator.storage
。”错误。
谁能帮我解决这个问题。
我想要这个错误的解决方案
这是警告而不是错误,可以在源代码中找到。 在您可能拥有的任何 JS 文件中查找并替换:
来自
StorageType.persistent
至
navigator.storage
如果您使用 Cloudflare CDN,它会注入 main.js 或无形的.js 文件,这可能会导致警告。您可以忽略,因为这不是错误,或者可以联系 Cloudflare 支持。