From 71fb266aaef388eb1dac50505f9e2a1ab24c547e Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Fri, 5 Apr 2024 17:31:02 +0200 Subject: [PATCH] feat: fix form URL protocol --- force-app/main/default/lwc/starRating/starRating.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/lwc/starRating/starRating.js b/force-app/main/default/lwc/starRating/starRating.js index 98fd936..b9b1791 100644 --- a/force-app/main/default/lwc/starRating/starRating.js +++ b/force-app/main/default/lwc/starRating/starRating.js @@ -14,7 +14,7 @@ export default class StarRating extends LightningElement { return this._formUrl; } set formUrl(value) { - this._formUrl = value; + this._formUrl = (value?.startWith('http://') || value?.startWith('https://')) ? value : `https://${value}`; this.generateStars(); }