Remove jQuery Migrate "traces" logs, keeping only "warnings"

This commit is contained in:
Molkobain
2020-11-23 09:56:08 +01:00
parent b1102bc68c
commit 91ab66453b
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
/*
* @copyright Copyright (C) 2010-2020 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
/**
* jQuery Migrate parameters to use in development environment
*/
jQuery.migrateTrace = false;

View File

@@ -33,6 +33,7 @@ class NiceWebPage extends WebPage
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.min.js');
if (utils::IsDevelopmentEnvironment()) // Needed since many other plugins still rely on oldies like $.browser
{
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-migrate.dev-params.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-migrate.dev.js');
} else {
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-migrate.prod.min.js');