mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
do not create a new UserScriptManager every time the accessor is called
This commit is contained in:
@@ -144,7 +144,7 @@ ServiceWorkerManager* ElectronExtensionSystem::service_worker_manager() {
|
||||
}
|
||||
|
||||
UserScriptManager* ElectronExtensionSystem::user_script_manager() {
|
||||
return new UserScriptManager(browser_context_);
|
||||
return user_script_manager_.get();
|
||||
}
|
||||
|
||||
StateStore* ElectronExtensionSystem::state_store() {
|
||||
|
||||
Reference in New Issue
Block a user