.then((data) => data.json())
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  почему второй вариант не рабочий?
                  
                  
                  
                  
                  
                  Unhandled Promise Rejection: SyntaxError: The string did not match the expected pattern.
                  
                  
                
что window.location.href возвращает?
Обсуждают сегодня