This commit is contained in:
Sriram Hariharan
2023-09-17 15:25:14 -05:00
parent 864afd8dcb
commit 9658697d96
3 changed files with 6 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import getSiteSupport, { SiteSupport } from './lib/getSiteSupport';
import PopupMain from './components/PopupMain';
const support = getSiteSupport(window.location.href);
console.log('support:', support);
if (!support) {
throw new Error('UT Registration Plus does not support this page, even though it should...');

View File

@@ -22,7 +22,7 @@ export default function getSiteSupport(url: string): SiteSupport | null {
if (isExtensionPopup()) {
return SiteSupport.EXTENSION_POPUP;
}
if (isExtensionPage('MyCalendar.html')) {
if (isExtensionPage('my_calendar.html')) {
return SiteSupport.MY_CALENDAR;
}
if (url.includes('utexas.collegescheduler.com')) {