mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed infinite retry messages
This commit is contained in:
parent
3c9c3493ae
commit
452014019f
|
@ -8,9 +8,6 @@ const ignoredPages = {
|
||||||
"directory": true,
|
"directory": true,
|
||||||
};
|
};
|
||||||
|
|
||||||
let popup = chrome.extension.getViews({type: "popup"})[0];
|
|
||||||
popup.window.getElementById("status").innerHTML = "NaM";
|
|
||||||
|
|
||||||
/// return channel name if it should contain a chat
|
/// return channel name if it should contain a chat
|
||||||
function matchChannelName(url) {
|
function matchChannelName(url) {
|
||||||
if (!url)
|
if (!url)
|
||||||
|
|
|
@ -73,13 +73,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// nav bar
|
// nav bar
|
||||||
if (rightCollapseButton && !installedObjects.topNav) {
|
if (!installedObjects.topNav) {
|
||||||
let x = findRightCollapse();
|
if (rightCollapseButton) {
|
||||||
|
let x = findNavBar();
|
||||||
|
|
||||||
|
x.addEventListener("mouseup", () => {
|
||||||
|
if (!isCollapsed) {
|
||||||
|
let collapse = findRightCollapse();
|
||||||
|
collapse.click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
installedObjects.topNav = true;
|
installedObjects.topNav = true;
|
||||||
} else {
|
} else {
|
||||||
retry = true;
|
retry = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// retry if needed
|
// retry if needed
|
||||||
if (retry) {
|
if (retry) {
|
||||||
|
|
Loading…
Reference in a new issue