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

Not installing package, but using url as source #48

Open
lbreguet opened this issue Jul 24, 2018 · 0 comments
Open

Not installing package, but using url as source #48

lbreguet opened this issue Jul 24, 2018 · 0 comments

Comments

@lbreguet
Copy link

I'm trying to use the plugin in a SharePoint website, and I'm trying to use the plugin in the following form:

require(["https://github.com/tsuyoshiwada/sweet-scroll/blob/master/sweet-scroll.js"], function() {
      var scroller = new SweetScroll({
            vertical: false,
            horizontal: true,
      }, '#container');
})

However, I keep getting an error that SweetScroll is undefined and it's breaking the rest of my script.

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

No branches or pull requests

1 participant