From f3271a4720c6baa7456dc6f1b3e08a700b92e6f1 Mon Sep 17 00:00:00 2001 From: Ariz253 Date: Thu, 11 Dec 2025 00:12:41 +0530 Subject: [PATCH] Fix: Resolve mobile redirect double-encoding issue in Safari/iOS (#661); Includes line-ending style fixes --- dist/hello.js | 2 +- package-lock.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/hello.js b/dist/hello.js index 9cc9dcbd..ad50d26b 100644 --- a/dist/hello.js +++ b/dist/hello.js @@ -1430,7 +1430,7 @@ hello.utils.extend(hello.utils, { // - This is bad if the value contains break points which are escaped // - Hence the url must be encoded twice as it contains breakpoints. if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) { - url = redirectUri + '#oauth_redirect=' + encodeURIComponent(encodeURIComponent(url)); + url = redirectUri + '#oauth_redirect=' + encodeURIComponent(url); } var popup = window.open( diff --git a/package-lock.json b/package-lock.json index 9f11b8f7..936746c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hellojs", - "version": "1.19.5", + "version": "1.20.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hellojs", - "version": "1.19.5", + "version": "1.20.0", "license": "MIT", "devDependencies": { "@semantic-release/changelog": "^6.0.2",