Skip to content

Commit

Permalink
Additional cache urls (#9733)
Browse files Browse the repository at this point in the history
  • Loading branch information
honeybadgerdontcare committed Jun 6, 2017
1 parent f2886f3 commit 2c7f719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion validator/chromeextension/content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ globals.amphtmlRegex = new RegExp('(^\s*)amphtml(\s*$)');
globals.ampCaches = [
{
'getAmpHref': function() {
if (window.location.pathname.startsWith('/c/s')) {
if (window.location.pathname.startsWith('/a/s') ||
window.location.pathname.startsWith('/c/s') ||
window.location.pathname.startsWith('/v/s')) {
return 'https://' + window.location.pathname.slice(5);
} else if (window.location.pathname.startsWith('/c')) {
return 'http://' + window.location.pathname.slice(3);
Expand Down
2 changes: 1 addition & 1 deletion validator/chromeextension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.1.1",
"version": "1.1.2",
"default_locale": "en",
"description": "__MSG_extensionDescription__",
"icons": {
Expand Down

0 comments on commit 2c7f719

Please sign in to comment.