Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion pkg/slack/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,23 @@ func (*OAuthHandler) writeSuccessPage(writer http.ResponseWriter, teamName strin
<a href="https://github.com/codeGROOVE-dev/slacker/blob/main/docs/SETUP.md#configuring-your-repositories"
target="_blank"
rel="noopener noreferrer">Configure your repositories</a></p>
<p class="footer">Then close this window and return to Slack.</p>
<p class="footer">This window will close automatically in <span id="countdown">3</span> seconds.</p>
</div>
</main>
<script>
(function() {
var seconds = 3;
var countdown = document.getElementById('countdown');
var timer = setInterval(function() {
seconds--;
if (countdown) countdown.textContent = seconds;
if (seconds <= 0) {
clearInterval(timer);
window.close();
}
}, 1000);
})();
</script>
</body>
</html>
`, teamName); err != nil {
Expand Down
Loading