update homepage warning
diff --git a/init.js b/init.js
index c5929eb..686c578 100644
--- a/init.js
+++ b/init.js
@@ -134,8 +134,13 @@
dtps.shouldRender = true;
dtps.alert("Loading...", "Make sure to update your bookmark script");
} else {
+ if (window.location.pathname.split("/")[3] !== "portal") {
+ dtps.shouldRender = true;
+ dtps.alert("Page error", 'Go to your <a href="https://dtechhs.learning.powerschool.com/u/' + HaikuContext.user.login + '/portal">PowerSchool homepage</a> to load Power+');
+ } else {
dtps.shouldRender = true;
- dtps.alert("Loading...", "Make sure to be on the home page");
+ dtps.alert("Loading...");
+ }
}
}