Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #1720, allow view-source URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 11, 2016
1 parent fffd1d0 commit 29efea9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/shot.js
Expand Up @@ -30,6 +30,9 @@ function isUrl(url) {
if ((/^chrome:.*/i).test(url)) {
return true;
}
if ((/^view-source:/i).test(url)) {
return isUrl(url.substr("view-source:".length));
}
return (/^https?:\/\/[a-z0-9\.\-]+[a-z0-9](:[0-9]+)?\/?/i).test(url);
}

Expand Down

0 comments on commit 29efea9

Please sign in to comment.