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

ShadowdareShadowdare r_j MVP

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


Sign In or Register to comment.