зеркало из https://github.com/mozilla/lightbeam.git
Merge pull request #554 from mozilla/fix/broken-filter-selection
Fix #542: send correct event to update ui from prefs when ready
This commit is contained in:
Коммит
51f4903fdd
|
@ -467,7 +467,7 @@ function updateUIFromPrefs(event) {
|
|||
console.error("NO viz");
|
||||
}
|
||||
}
|
||||
// This is not working quite
|
||||
|
||||
if ("defaultFilter" in event) {
|
||||
aggregate.currentFilter = event["defaultFilter"];
|
||||
document.querySelector('a[data-value=' + aggregate.currentFilter + ']')
|
||||
|
|
|
@ -180,8 +180,7 @@ function attachToLightbeamPage(worker) {
|
|||
}
|
||||
|
||||
function onUIReady() {
|
||||
console.log("passing stored connections");
|
||||
worker.port.emit("setPrefs", prefs);
|
||||
worker.port.emit("updateUIFromPrefs", prefs);
|
||||
worker.port.emit("passStoredConnections", getAllConnections());
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче