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

Staging #27

Merged
merged 8 commits into from
Oct 6, 2017
Merged

Staging #27

merged 8 commits into from
Oct 6, 2017

Conversation

nathang21
Copy link
Member

@nathang21 nathang21 commented Oct 5, 2017

  • Enable feed of Shopify order data to Google Customer reviews to build our brand trust reputation.

@nathang21 nathang21 requested a review from JZinger18 October 5, 2017 03:25
@nathang21
Copy link
Member Author

nathang21 commented Oct 6, 2017

CodeFactor found an issue: Duplicate Code

It's currently on:
additional\returnly-scripts.js:2-12
additional\google-analytics-subdomains.js:1-11
Commit 5383c25

This should be easily fixable in a future PR if we externalize our Returnly scripts (along with CSS) on a CDN. For documentation purposes in the meantime I think this duplicate code is reasonable. #29

// Smooch web messenger
function loadScript(src, callback) { var s, r, t; r = false; s = document.createElement('script'); s.type = 'text/javascript'; s.src = src; s.onload = s.onreadystatechange = function() { if ( !r && (!this.readyState || this.readyState == 'complete') ) { r = true; callback(); } }; t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t); } loadScript('https://cdn.smooch.io/smooch.min.js', function() {

// setting variable to chat button on sizing tab
Copy link
Member

Choose a reason for hiding this comment

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

#28 We need to fix this

Copy link
Member

@JZinger18 JZinger18 left a comment

Choose a reason for hiding this comment

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

LGTM except smooch extra lines of code

@nathang21 nathang21 merged commit 845e3e2 into master Oct 6, 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.

2 participants