mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-27 22:43:15 +08:00
Include templates in live reload
This commit is contained in:
@@ -25,7 +25,7 @@ function connect() {
|
||||
const data = JSON.parse(event.data);
|
||||
console.log("[live-reload] File changed:", data);
|
||||
|
||||
if (data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
||||
if (data.file_path.endsWith(".html") || data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
||||
console.log("[live-reload] Asset changed, reloading page");
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
position: fixed;
|
||||
max-height: var(--menu-max-height, 200px);
|
||||
overflow: auto;
|
||||
|
||||
|
||||
& .menu-item {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
@@ -61,5 +61,7 @@
|
||||
{% if not request.global_settings.enable_link_prefetch %}<meta name="turbo-prefetch" content="false">{% endif %}
|
||||
{% if rss_feed_url %}<link rel="alternate" type="application/rss+xml" href="{{ rss_feed_url }}" />{% endif %}
|
||||
<script src="{% static "bundle.js" %}?v={{ app_version }}"></script>
|
||||
{% if debug %}<script src="{% static "live-reload.js" %}"></script>{% endif %}
|
||||
{% if debug %}
|
||||
<script src="{% static "live-reload.js" %}"></script>
|
||||
{% endif %}
|
||||
</head>
|
||||
|
||||
@@ -10,4 +10,3 @@ from .manifest import manifest
|
||||
from .custom_css import custom_css
|
||||
from .root import root
|
||||
from .opensearch import opensearch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user