fix issue with files loading with watching enabled (#3930)

This commit is contained in:
Timothy Carambat
2025-06-01 12:53:48 -07:00
committed by GitHub
parent 702e75635c
commit a0134de979
2 changed files with 6 additions and 5 deletions

View File

@@ -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