ferman-guzel commented on code in PR #1135:
URL: https://github.com/apache/guacamole-client/pull/1135#discussion_r2602480155


##########
guacamole/src/main/frontend/src/app/settings/services/preferenceService.js:
##########
@@ -78,6 +78,15 @@ angular.module('settings').provider('preferenceService', 
['$injector',
 
     };
 
+        // ------------------------------------------------------------------
+        // Cookie helpers
+        // ------------------------------------------------------------------

Review Comment:
   Applied the suggested change



##########
guacamole/src/main/frontend/src/app/settings/services/preferenceService.js:
##########
@@ -78,6 +78,15 @@ angular.module('settings').provider('preferenceService', 
['$injector',
 
     };
 
+        // ------------------------------------------------------------------
+        // Cookie helpers
+        // ------------------------------------------------------------------
+        function getCookie(name) {
+            var match = document.cookie.match(new RegExp("(^| )" + name + 
"=([^;]+)"));
+            return match ? decodeURIComponent(match[2]) : null;
+        }
+        // ------------------------------------------------------------------

Review Comment:
   Applied the suggested change



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to