Skip to content

Commit fbfaee9

Browse files
committed
Linting
1 parent edd9964 commit fbfaee9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

greip.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const GeoIP = (options: Options) => {
2323
const mode1 = options.mode || 'live';
2424
lang1 = lang1.toUpperCase();
2525

26-
//? GFP data
26+
// GFP data
2727
const gfp_data = getGFP();
2828

2929
// Validate the params variable items
@@ -637,7 +637,7 @@ export const PhoneValidation = (options: Options) => {
637637
);
638638
}
639639
makeHttpRquest(
640-
'/scoring/payment',
640+
'/scoring/phone',
641641
{
642642
phone: phone1,
643643
countryCode: countryCode1,

src/util.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ export const makePostRquest = (endpoint: string, options: any, callback: (data:
5454
export const getGFP = () => {
5555
try {
5656
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
57-
const primary_language = navigator.language;
58-
const preferred_languages = navigator.languages;
59-
const screen_width = window.screen.width;
60-
const screen_height = window.screen.height;
57+
const primaryLanguage = navigator.language;
58+
const preferredLanguages = navigator.languages;
59+
const screenWidth = window.screen.width;
60+
const screenHeight = window.screen.height;
6161
const plugins =
6262
typeof navigator.plugins !== 'undefined' ? Array.from(navigator.plugins).map((plugin) => plugin.name) : null;
6363

6464
let gfpData = {
6565
timezone,
66-
primary_language,
67-
preferred_languages,
68-
screen_width,
69-
screen_height,
66+
primary_language: primaryLanguage,
67+
preferred_languages: preferredLanguages,
68+
screen_width: screenWidth,
69+
screen_height: screenHeight,
7070
plugins,
7171
};
7272

0 commit comments

Comments
 (0)