Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
how to enable my plugin in mobile
![wzttest1](https://secure.gravatar.com/avatar/a497c23cd03a9150e3c9ad4c8953ac4c/?default=https%3A%2F%2Fvanillicon.com%2F7e8376b027123f6c8adbb11448a0dc6a_100.png&rating=g&size=100)
Hi,
I develop a plugin to add my js to my vanilla site!The following is my code:
public function DiscussionController_BeforeDiscussionRender_Handler(&$Sender) {
$Sender->AddJsFile('/test/test.js');
}
It can run on my computer browser and can run on my ipod with full site mode!But it is invalid with the mobile mode (the default view mode on ipod with safari),how can I make it run on my ipod with mobile mode?
thanks!
0
Comments
Add this to the info array of your plugin:
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
It's working now!
thank you very much!
No worries, glad I could be of help!
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub