From 4d5e51c89a7190d4e7f79cffbddb961b791301b0 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Fri, 2 Sep 2022 11:37:06 +0200 Subject: [PATCH] . --- content/pages/checkout.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/pages/checkout.blade.php b/content/pages/checkout.blade.php index 1054b20..ba7bf4b 100644 --- a/content/pages/checkout.blade.php +++ b/content/pages/checkout.blade.php @@ -325,7 +325,9 @@ $(window).on('load', google.maps.event, initialize); let input = document.querySelector("#ctelefon"); let iti = window.intlTelInput(input, { - initialCountry: "de", geoIpLookup: function(callback) { + initialCountry: "de", + preferredCountries: ["de"], + geoIpLookup: function(callback) { $.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) { let countryCode = (resp && resp.country)?resp.country:"us"; callback(countryCode); @@ -333,6 +335,7 @@ }, utilsScript: "{{storage('assets/libs/intl-tel-input/js/utils.min.js')}}", }); + // iti.getNumber(); function updateProducts(){}