Skip to content

Add viewer integration script based on amp_js_v#7703

Merged
muxin merged 2 commits intoampproject:masterfrom
muxin:add-viewer-script
Feb 21, 2017
Merged

Add viewer integration script based on amp_js_v#7703
muxin merged 2 commits intoampproject:masterfrom
muxin:add-viewer-script

Conversation

@muxin
Copy link
Copy Markdown
Contributor

@muxin muxin commented Feb 21, 2017

Fix #7461

/cc @chenshay

* @param {string} file
*/
function addViewerIntegrationScript(ampJsVersion, file) {
ampJsVersion = parseFloat(ampJsVersion);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can flip if-else and return early

@muxin muxin merged commit 07b6bdc into ampproject:master Feb 21, 2017
@muxin muxin deleted the add-viewer-script branch February 21, 2017 23:40
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.

3 participants