Remove requirement for chats to be in a project

This commit is contained in:
2025-07-17 11:52:30 -04:00
parent 12e0f709bc
commit e68bfc1d12
3 changed files with 11 additions and 20 deletions

View File

@ -1,17 +1,8 @@
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 context, exiting');
if (!ProjectMeta.isScrapable()) {
console.log('Not in a scrapable context, exiting');
return;
}