Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure fragment to be updated does not have leading # #7454

Merged
merged 1 commit into from Feb 10, 2017

Conversation

muxin
Copy link
Contributor

@muxin muxin commented Feb 9, 2017

No description provided.

@muxin muxin requested a review from lannka February 9, 2017 18:39
@muxin muxin force-pushed the share-tracking-leave-pound-sign-off branch from 20d8f2d to f081c8d Compare February 9, 2017 19:24
@@ -646,12 +646,12 @@ app.get(['/dist/cache-sw.min.html', '/dist/cache-sw.max.html'], function(req, re
*/
function replaceUrls(mode, file) {
if (mode) {
file = file.replace('https://cdn.ampproject.org/viewer/google/v5.js', 'https://cdn1.ampproject.org/viewer/google/v5.js');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha, the code was interesting :-) but i guess removing them will break something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the code below for general viewer url:
file = file.replace(/(https:\/\/cdn.ampproject.org\/viewer\/.+).max.js/g, '$1.js');

@muxin muxin merged commit d5be94b into ampproject:master Feb 10, 2017
@muxin muxin deleted the share-tracking-leave-pound-sign-off branch February 10, 2017 18:52
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants