From 79aafb5edf84e4c85e2e623863026bc3893f51a3 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 31 Dec 2015 11:50:58 +0100 Subject: [PATCH] adapt observer to MM 1.3 layout (fixes #59) --- src/browser/mattermost-observer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/mattermost-observer.js b/src/browser/mattermost-observer.js index 9770c2b..179d5be 100644 --- a/src/browser/mattermost-observer.js +++ b/src/browser/mattermost-observer.js @@ -4,7 +4,7 @@ document.addEventListener("DOMContentLoaded", function() { // observe the DOM for mutations, specifically the .ps-container // which contains all the sidebar channels var MutationObserver = window.MutationObserver; - var list = document.querySelector('.ps-container'); + var list = document.querySelector('.sidebar--left'); var observer = new MutationObserver(function(mutations) { if (mutations.length) {