Changeset View
Changeset View
Standalone View
Standalone View
extension/extension.js
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 170 | port.onDisconnect.addListener(function() { | |||
---|---|---|---|---|---|
197 | updateBrowserAction(); | 197 | updateBrowserAction(); | ||
198 | }); | 198 | }); | ||
199 | 199 | | |||
200 | sendEnvironment(); | 200 | sendEnvironment(); | ||
201 | sendSettings(); | 201 | sendSettings(); | ||
202 | sendDownloads(); | 202 | sendDownloads(); | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | addRuntimeCallback("settings", "changed", function () { | 205 | SettingsUtils.onChanged().addListener(() => { | ||
206 | sendSettings(); | 206 | sendSettings(); | ||
207 | }); | 207 | }); | ||
208 | 208 | | |||
209 | addRuntimeCallback("settings", "openKRunnerSettings", function () { | 209 | addRuntimeCallback("settings", "openKRunnerSettings", function () { | ||
210 | sendPortMessage("settings", "openKRunnerSettings"); | 210 | sendPortMessage("settings", "openKRunnerSettings"); | ||
211 | }); | 211 | }); | ||
212 | 212 | | |||
213 | addRuntimeCallback("settings", "getSubsystemStatus", (message, sender, action) => { | 213 | addRuntimeCallback("settings", "getSubsystemStatus", (message, sender, action) => { | ||
Show All 33 Lines |