Skip to content

Conversation

@tlusk
Copy link

@tlusk tlusk commented Mar 14, 2025

Axios when running within Node.js doesn't support the file:// protocol. This changes it so that it explicitly uses Node.js's fs package to load local files if file:// is detected in the URI.

This also fixes the fact that the custom display configuration was not being loaded on save, only on startup of the plugin.

It also fixes it so that if you remove a custom display configuration it will fall back to the default configuration without needing to restart the plugin.

This fixes #342

Axios when running within Node.js doesn't support the file:// protocol.
This changes it so that it explicitly uses Node.js's `fs` package to
load local files if `file://` is detected in the URI.

This also fixes the fact that the custom display configuration was not
being loaded on save, only on startup of the plugin.

It also fixes it so that if you remove a custom display configuration it
will fall back to the default configuration without needing to restart
the plugin.

This fixes cgiesche#342
@tlusk tlusk force-pushed the bugfix/fix-custom-display-configuration branch from bbe1d79 to 35c314e Compare March 14, 2025 00:20
@cgiesche cgiesche merged commit e75c04d into cgiesche:master Mar 26, 2025
1 check passed
@tlusk tlusk deleted the bugfix/fix-custom-display-configuration branch March 26, 2025 19:16
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.

Custom display configuration doesn't work anymore

2 participants