diff --git a/examples/Angular/main.ts b/examples/Angular/main.ts index d5a2eb30..bc6a4a84 100644 --- a/examples/Angular/main.ts +++ b/examples/Angular/main.ts @@ -11,7 +11,7 @@ window.Countly = Countly; const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; -if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ +if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params diff --git a/examples/Symbolication/src/main.js b/examples/Symbolication/src/main.js index a7033beb..ae06a4f3 100644 --- a/examples/Symbolication/src/main.js +++ b/examples/Symbolication/src/main.js @@ -3,7 +3,7 @@ import Countly from "countly-sdk-web"; const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; -if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ +if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params @@ -33,22 +33,22 @@ Countly.track_forms(); Countly.track_errors(); //let's cause some errors -function cause_error(){ - undefined_function(); +function cause_error() { + undefined_function(); } -window.onload = function() { - document.getElementById("handled_error").onclick = function handled_error(){ - Countly.add_log('Pressed handled button'); - try { - cause_error(); - } catch(err){ - Countly.log_error(err) - } +window.onload = function () { + document.getElementById("handled_error").onclick = function handled_error() { + Countly.add_log('Pressed handled button'); + try { + cause_error(); + } catch (err) { + Countly.log_error(err) + } }; - document.getElementById("unhandled_error").onclick = function unhandled_error(){ - Countly.add_log('Pressed unhandled button'); - cause_error(); + document.getElementById("unhandled_error").onclick = function unhandled_error() { + Countly.add_log('Pressed unhandled button'); + cause_error(); }; } diff --git a/examples/example_apm.html b/examples/example_apm.html index 28a13329..3059fd1b 100644 --- a/examples/example_apm.html +++ b/examples/example_apm.html @@ -13,7 +13,7 @@ const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; - if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params diff --git a/examples/example_apm_async.html b/examples/example_apm_async.html index bf56e48f..ad12b1cf 100644 --- a/examples/example_apm_async.html +++ b/examples/example_apm_async.html @@ -14,8 +14,8 @@ Countly.app_key = "YOUR_APP_KEY"; Countly.url = "https://your.server.ly"; //your server goes here - if(Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly"){ - console.warn("Please do not use default set of app key and server url") + if (Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly") { + console.warn("Please do not use default set of app key and server url") } Countly.debug = true; @@ -24,7 +24,7 @@ // Countly.customSourceCountlyBoomerang = "../somewhere/countly_boomerang.js"; //start pushing function calls to queue: - + // track sessions automatically Countly.q.push(['track_sessions']); @@ -70,4 +70,4 @@