|
|
|
@ -57,10 +57,10 @@ function init() {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// debug
|
|
|
|
|
window.demonunpatch = window.demon[settingsSym].patch;
|
|
|
|
|
window.__demontemp__UnpatchSettingsInj = unInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function unInit(obj: Object) {
|
|
|
|
|
function unInit() {
|
|
|
|
|
window.demon[settingsSym].patch();
|
|
|
|
|
delete window.demon[settingsSym];
|
|
|
|
|
}
|
|
|
|
@ -74,7 +74,7 @@ function unregisterSettingsEntry(name: string) {
|
|
|
|
|
|
|
|
|
|
function registerSettingsEntry(
|
|
|
|
|
name: string,
|
|
|
|
|
section: string,
|
|
|
|
|
section: ?string,
|
|
|
|
|
component: Function
|
|
|
|
|
): () => void {
|
|
|
|
|
let entry: { [symbol | string]: any } = { name, component };
|
|
|
|
|