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 Showing on Electron JS #473

Closed
pawanagre opened this issue Nov 8, 2016 · 2 comments
Closed

Not Showing on Electron JS #473

pawanagre opened this issue Nov 8, 2016 · 2 comments

Comments

@pawanagre
Copy link

pawanagre commented Nov 8, 2016

I am using this custom-scrollbar-plugin in Electron JS, but it is not working in this environment and showing error as :

angular.js:12477 TypeError: $(...).mCustomScrollbar is not a function
    at Object.scrollBar [as malihuScroll]

It is working properly with all browsers but not with Electron JS (http://electron.atom.io)
error

@pawanagre pawanagre changed the title Now Showing on Electron JS Not Showing on Electron JS Nov 8, 2016
@lhttjdr
Copy link

lhttjdr commented Dec 26, 2016

Perhaps you need something like

var $ = require('jquery');
require('malihu-custom-scrollbar-plugin')($);

where ($) is the key point.

@pawanagre
Copy link
Author

@lhttjdr Thanks for your solution. It really worked for me.

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

2 participants