* updates the security manager to allow fonts and less files if necessary.
*
* @param app The current application
*/
private static void updateSecurityManager(final Application app) {
final IPackageResourceGuard packageResourceGuard = app.getResourceSettings().getPackageResourceGuard();
if (packageResourceGuard instanceof SecurePackageResourceGuard) {
SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
guard.addPattern("+*.woff");
guard.addPattern("+*.eot");