Fixed some context

This commit is contained in:
2025-07-17 11:43:12 -04:00
parent fbede823e5
commit 12e0f709bc
3 changed files with 14 additions and 8 deletions

View File

@ -1,8 +1,17 @@
async function main() {
console.log('Running artifact collector');
const currentUrl = window.location.href;
const isProjectPage = currentUrl.includes('/project/');
const isChatPage = currentUrl.includes('/chat/');
if (!isProjectPage && !isChatPage) {
console.log('Not on a project or chat page, exiting');
return;
}
if (!ProjectMeta.isInProject()) {
console.log('Not in a project chat, exiting');
console.log('Not in a project context, exiting');
return;
}