-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(amp-user-notification): execute GET instead of POST on data-show-if-href #1321
Conversation
c45dde8
to
13b2981
Compare
Nit: This isn't really a refactor. More like a breaking change :) |
@cramforce lol good point 🎯 |
13b2981
to
0b43e2c
Compare
7ced1e6
to
93b0b44
Compare
@dvoytenko ready for review |
@dvoytenko PTAL |
@@ -205,7 +205,7 @@ | |||
<amp-user-notification | |||
layout=nodisplay | |||
id="amp-user-notification1" | |||
data-show-if-href="http://localhost:8000/api/show" | |||
data-show-if-href="http://localhost:8000/api/show?timestamp=$TIMESTAMP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove $
- works without and we are trying to not advertise them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
3750735
to
3951765
Compare
describe('buildGetHref_', () => { | ||
|
||
it('should do url replacement', () => { | ||
dftAttrs['data-show-if-href'] = 'https://www.ampproject.org/path/?ord=$RANDOM'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto $
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed. done.
Cool. Couple more comments... |
081cc31
to
0f347d6
Compare
0f347d6
to
76894dc
Compare
LGTM |
fix(amp-user-notification): execute GET instead of POST on data-show-if-href
closes #1228