Skip to content

Conversation

cdruan
Copy link
Contributor

@cdruan cdruan commented Oct 14, 2025

  • skip reading file content when _canonical_uri is present

  • skip loading file when file size is too large

* skip reading file content when _canonical_uri is present

* skip loading file when file size is too large
Copy link

netlify bot commented Oct 14, 2025

Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit 008d80e
🔍 Latest deploy log https://app.netlify.com/projects/tiddlywiki-previews/deploys/68ee2741a0d295000826b9d0
😎 Deploy Preview https://deploy-preview-9341--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Confirmed: cdruan has already signed the Contributor License Agreement (see contributing.md)

Copy link

📊 Build Size Comparison: empty.html

Branch Size
Base (master) 2421.1 KB
PR 2421.8 KB

Diff: ⬆️ Increase: +0.6 KB

text = "";
} else if(fs.statSync(pathname).size > $tw.config.maxEditFileSize) {
var msg = "File " + pathname + " not loaded because it is too large";
console.log("Warning: " + msg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO console.warn() or even console.error() may be used here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants