HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

"assetModel_styleCss_handler" for JS

We can use the assetModel_styleCss_handler to include a "CSS file in all non-Dashboard pages" (not admin back-end pages).

Is there a similar one for including JS files? If not, what's a good way to only include JS files on the front-end?

One way I like is if ($sender->MasterView !== 'admin').

Add Pages to Vanilla with the Basic Pages app

Comments

Sign In or Register to comment.