1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-11 21:15:44 +02:00

Fix warning message about TweetDeck Preview appearing on login screen

This commit is contained in:
chylex 2023-07-17 12:49:43 +02:00
parent a58a1b347a
commit 57111212ea
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -1,7 +1,7 @@
import { $TD } from "../api/bridge.js";
export default function() {
if (!("TD" in window)) {
if (location.pathname === "/" && !("TD" in window)) {
$TD.alert("warning", "Some TweetDuck features failed to load. This might happen if your Twitter account is enrolled into the TweetDeck Preview, which TweetDuck does not support. Try opting out of the TweetDeck Preview to restore TweetDuck's functionality.");
}
}