Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary semicolons
Browse files Browse the repository at this point in the history
tulir committed Sep 2, 2024
1 parent f669c65 commit dc7b1b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/connector/login-cookie.go
Original file line number Diff line number Diff line change
@@ -65,15 +65,15 @@ var _ bridgev2.LoginProcessCookies = (*SlackTokenLogin)(nil)

const ExtractSlackTokenJS = `
new Promise(resolve => {
let mautrixSlackTokenCheckInterval;
let useSlackInBrowserClicked = false;
let mautrixSlackTokenCheckInterval
let useSlackInBrowserClicked = false
function mautrixFindSlackToken() {
// Automatically click the "Use Slack in Browser" button
if (/\.slack\.com$/.test(window.location.host)) {
const link = document?.querySelector?.(".p-ssb_redirect__body")?.querySelector?.(".c-link");
const link = document?.querySelector?.(".p-ssb_redirect__body")?.querySelector?.(".c-link")
if (link && !useSlackInBrowserClicked) {
location.href = link.getAttribute("href");
useSlackInBrowserClicked = true;
location.href = link.getAttribute("href")
useSlackInBrowserClicked = true
}
}
if (!localStorage.localConfig_v2?.includes("xoxc-")) {

0 comments on commit dc7b1b5

Please sign in to comment.