-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
36 lines (31 loc) · 941 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function load() {
Sentry.init({
dsn: "https://fa13e8d770fc4d61b9de581d678b2deb@o87286.ingest.sentry.io/6503225",
release: "7.7",
//integrations: [new Sentry.Integrations.BrowserTracing()],
//debug: true,
tracesSampleRate: 1.0,
integrations: function(integrations) {
return integrations.filter(function(integration) {
return integration.name !== "InboundFilters" && integration.name !== "Dedupe";
});
}
});
var box = document.getElementById("box1");
box.addEventListener("click", onBoxClick);
};
function onBoxClick(e) {
var box = e.target;
if (box.style.backgroundColor == "blue") {
box.style.backgroundColor = "white";
}
else {
ox.style.backgroundColor = "blue";
}
};
/// Just an example
function generateAnError() {
var obj = {};
obj.david();
};
window.onload = load;