Skip to content

Commit

Permalink
feat: update warns
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Jan 26, 2024
1 parent dc07a42 commit 8e1d48c
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/Angular/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/React/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/Symbolication/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_async.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Countly.url = "https://your.server.ly"; //your server goes here

if(Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
Countly.debug = true;

Expand Down
2 changes: 1 addition & 1 deletion examples/example_fb.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_formdata.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_gdpr.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
6 changes: 3 additions & 3 deletions examples/example_multiple_instances.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand All @@ -34,7 +34,7 @@
const COUNTLY_APP_KEY2 = "YOUR_APP_KEY2";

if(COUNTLY_APP_KEY2 === "YOUR_APP_KEY2" || COUNTLY_SERVER_KEY2 === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
var Countly2 = Countly.init({
Expand All @@ -52,7 +52,7 @@
const COUNTLY_APP_KEY3 = "YOUR_APP_KEY3";

if(COUNTLY_APP_KEY3 === "YOUR_APP_KEY3" || COUNTLY_SERVER_KEY2 === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}

//initialize third instance for another app asynchronously
Expand Down
2 changes: 1 addition & 1 deletion examples/example_opt_out.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_rating_widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_remote_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/example_sync.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/examples_feedback_widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
Expand Down
2 changes: 1 addition & 1 deletion examples/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,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"){
throw new Error("Please do not use default set of app key and server url")
console.warn("Please do not use default set of app key and server url")
}

Countly.init({
Expand Down

0 comments on commit 8e1d48c

Please sign in to comment.