1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 18:51:42 +02:00

Fix reset settings (#712)

* Fix reset settings

* Reset index
This commit is contained in:
Barry vd. Heuvel
2025-01-30 19:33:55 +01:00
committed by GitHub
parent 3fab678a22
commit 8b89a30a57

View File

@@ -386,8 +386,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.settings = {};
// Reset options
debugbar.options = debugbar.defaultOptions;
debugbar.setTheme(debugbar.options.theme);
debugbar.options = { ...debugbar.defaultOptions };
// Reset ajax handler
if (debugbar.ajaxHandler) {
@@ -398,6 +397,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
debugbar.controls['__datasets'].get('widget').set('autoshow', $(this).is(':checked'));
}
}
this.initialize(debugbar.options);
},
storeSetting: function(key, value) {