-
Notifications
You must be signed in to change notification settings - Fork 139
AJS-Next: fix destinations with wrong aliases #566
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
Conversation
|
|
||
| /* eslint-disable */ | ||
| window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');$.src=scriptUrl;z.t=+new Date;$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); | ||
| window.$zopim || (function(d, s) { var z = (window.$zopim = function(c) { z._.push(c); }), $ = (z.s = d.createElement(s)), e = d.getElementsByTagName(s)[0]; z.set = function(o) { z.set._.push(o); }; z._ = []; z.set._ = []; $.async = !0; $.setAttribute('charset', 'utf-8'); $.src = scriptUrl; z.t = +new Date(); $.type = 'text/javascript'; e.parentNode.insertBefore($, e); })(document, 'script'); |
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.
the compiled code for zopim would break because of a bad assignment.
The only real change here is $zopim= to window.$zompim=
| `.trim(); | ||
|
|
||
| const filename = file.replace('.js', '.dynamic.js'); | ||
| const filename = file.replace(/\.js$/, '.dynamic.js'); |
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.
This makes compilation/uploads more reliable in dev
What does this PR do?
Change a few destinations to have the package name match the destination creation name, so ajs next is able to load the correct destination dynamically from S3.
Are there breaking changes in this PR?
N/A
Testing
Testing completed successfully using ajs-next in staging using this website: https://repl.it/@nettofarah/ajs-next-broken-integrations-qa#index.html