File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,14 @@ class ArchiveNow extends LitElement {
204
204
205
205
case "live-proxy-url-error" :
206
206
if ( event . data . status === 403 ) {
207
- this . errorMessage =
208
- "It looks like this site is blocking us from loading it." ;
207
+ // Since https://example is a valid URL, manually check for basic domain syntax
208
+ if ( event . data . url . indexOf ( "." ) > 0 ) {
209
+ this . errorMessage =
210
+ "It looks like this site is blocking us from loading it." ;
211
+ } else {
212
+ this . errorMessage =
213
+ "It looks like this might not be a valid URL, or the site is blocking us from loading it." ;
214
+ }
209
215
} else if ( event . data . status > 500 ) {
210
216
this . errorMessage =
211
217
"It looks like this might not be a valid URL, or the site is down." ;
You can’t perform that action at this time.
0 commit comments