- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 DoubleClick 的网站。在 Sentry(错误跟踪)中,pubads_impl_xxx.js 中存在一些错误,但仅限于 Mobile Safari。这是为什么?我应该忽略它们还是有什么方法可以修复它们?
谢谢
TypeError: Illegal invocation
at HTMLDocument.document.createEvent(:1:40918)
at Wc.l(/gpt/pubads_impl_2020101501.js:6:89381)
at $c(/gpt/pubads_impl_2020101501.js:6:15725)
at bd.next(/gpt/pubads_impl_2020101501.js:6:16017)
at ? (/gpt/pubads_impl_2020101501.js:6:29861)
at new Promise(<anonymous>)
at Xa(/gpt/pubads_impl_2020101501.js:6:29629)
at Po.jn.dispatchEvent(/gpt/pubads_impl_2020101501.js:6:89295)
at cz._.q.Yb(/gpt/pubads_impl_2020101501.js:6:262763)
at Object.<anonymous>(/gpt/pubads_impl_2020101501.js:6:120833)
最佳答案
这似乎是一个已知的 ISSUE 1811 sentry-javascript 并且与 blacklistUrls
有关,在 iOS9 Mobile Safari 上不工作。
建议的解决方案是更新 blacklistUrls
以使用正则表达式或处理 beforeSend
回调中的检查。
在问题附带的代码中,由于 facebook 爬虫而发生错误,您可以进行类似的检查以找出 Google 爬虫正在使用的 url。
Sentry.init({
beforeSend: function (event) {
// Drop all events if query string includes `fbclid` string
if (location.search.indexOf('fbclid') !== -1) return null;
// Otherwise just let it though
return event;
}
});
关于javascript - 移动版 Safari 中的 TypeError : Illegal invocation in the pubads_impl_XXX. js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64497012/
#include #include using namespace std; //void multiply(int b); int main() { float total = 0; flo
我正在尝试加载存储在 HDFS 中的 Hadoop 集群上的 informatica 日志文件。我在 Python 中使用 subprocess 来执行此操作,但相信由于文件名而出现错误,我不确定如何
我尝试制作用于 Symfony 2 上传的 ajax 脚本。Chrome 返回此错误: Uncaught TypeError: Illegal invocation jquery.min.js:4 我
这只是一个简单的代码,用于检查一个数字是否是质数,我不知道这是编译器还是代码的问题。如果您能提供一些帮助,我们将不胜感激。 这是代码: #include "stdio.h" int main() {
当我运行这个 bash 脚本时: if [ [$EUID -ne 0] ]; then echo "This script must be run as root" 1>&2 exit 1
我最近偶然发现了 this jcstress 中的示例: @JCStressTest @State @Outcome(id = "10", expect =
我不理解这个错误(C2100:非法间接)。我标记了三个实例——都在底部附近。我在网上看过,我知道这与我的指示有关,但在 8 小时后,我完全迷路了。这里可能还有其他一些错误,但我什至无法分辨,因为我无法
我们正在运行一个 Create React App (CRA) Web 应用程序,我们已向其中添加了 Google Analytics v4。我们使用 ga-4-react 启动分析npm 包。 in
我想将多个图像对象发布到 testphp.php。但控制台打印错误说非法调用。 我已经尝试过: submit $("#sub").click(function(){ // get th
当文本框为空时尝试禁用按钮时,我在 google chrome 控制台中收到此错误: function isEmpty() { var r = document.getElementById;
我只是在玩 timesheet.js的源代码(参见具体行)并遇到一个小错误,请参见下面的代码行: '', 当我生成 HTML 并将其分成两行时,一切正常,但如果我执行以下操作将
public class Flatten { public static int[] flatten(int[][] x) { int totalLength = 0;
我的计算机上有一个 python3 脚本,我可以使用 python3motion_detection.py 运行它,并且该脚本有效,我尝试在我的 Raspberry 上使用它,但失败并显示消息非法指令
我正在尝试最近学到的一些多线程概念,但无法运行它。 它给出了 IllegalMonitorStateException 但没有弄清楚错误发生的原因。 因此,关于代码2线程引用名称填充器和写入器都共享一
这是 html 这是脚本 $('#submit').click(function() { var files = $("[type='file']")[0].fil
我尝试通过ajax提交表单,下面是表单。 Date Upload File
我几天前买了 C++ Primer 这本书,我开始学习这门新语言了! 此刻,我想弄明白为什么我自己写的这个 block 是非法的: 我将一个 const int 初始化为 512;我初始化一个指向 n
我收到以下错误消息 [Err] 1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,C
我正在尝试使用本教程创建一个 PostgreSQL 数据库: http://tutorials.jumpstartlab.com/topics/environment/environment.html
我想弄乱 Speech Recognition API,所以我从简单的页面开始,该页面在单击 body 元素时开始识别。我的 scripts.js 文件是: var recognition = new
我是一名优秀的程序员,十分优秀!