mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-15 23:20:32 +03:00
fix issue with files loading with watching enabled (#3930)
This commit is contained in:
@@ -53,6 +53,8 @@ const DocumentSyncQueue = {
|
||||
* @returns {boolean} - true if the document can be watched, false otherwise
|
||||
*/
|
||||
canWatch: function ({ title, chunkSource = null } = {}) {
|
||||
if (!chunkSource) return false;
|
||||
|
||||
if (chunkSource.startsWith("link://") && title.endsWith(".html"))
|
||||
return true; // If is web-link material (prior to feature most chunkSources were links://)
|
||||
if (chunkSource.startsWith("youtube://")) return true; // If is a youtube link
|
||||
|
||||
Reference in New Issue
Block a user