mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
Add remove setting api
This commit is contained in:
@@ -199,6 +199,16 @@ export default class Network extends Tool {
|
||||
evalCss.remove(this._style)
|
||||
this.restoreXhr()
|
||||
this.restoreFetch()
|
||||
this._rmCfg()
|
||||
}
|
||||
_rmCfg() {
|
||||
let cfg = this.config
|
||||
|
||||
let settings = this._container.get('settings')
|
||||
|
||||
if (!settings) return
|
||||
|
||||
settings.remove(cfg, 'overrideFetch').remove('Network')
|
||||
}
|
||||
_initCfg() {
|
||||
let cfg = (this.config = Settings.createCfg('network', {
|
||||
|
||||
Reference in New Issue
Block a user