-
Notifications
You must be signed in to change notification settings - Fork 11
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
Restore jqueryUI accordion functionality removed by Canvas commit. #264
Conversation
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.
One concern is this loads an external script that we have to trust. Would it be safer if we hosted our own copy of the drop-in replacement code?
public/sfu/js/sfu.js
Outdated
@@ -6,6 +6,10 @@ | |||
|
|||
*/ | |||
|
|||
!function(s,d,url,e,p){ |
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.
Can you add a comment here to explain what this is doing here, for future us?
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.
Ok
@va7map unpkg.com is trustworthy, I don't have a problem with pulling it from there (it's a CDN for npm modules). Bonus is that https://unpkg.com/widgetize-canvas-lms-user-content redirects to the most recent published version, so we don't need to keep it up to date. |
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.
Ah, good to know! 🌈
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.
Just add a comment in before the block stating what it is for and we're good to go.
Thanks @patchin. Go ahead and upload to prod. |
Ok thanks! |
This is a workaround which restores jqueryUI accordion functionality removed by the following commit: instructure@44ed07d
Taken from: 'https://github.com/ryankshaw/widgetize-canvas-lms-user-content'