From 9faf9ca98b582b9a140c7a32fb69693fe1360bda Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Sun, 21 Apr 2024 14:56:22 +0200 Subject: [PATCH] Add URL pragma of main.js in python code --- zundler/assets/main.js | 2 -- zundler/embed.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/zundler/assets/main.js b/zundler/assets/main.js index 4227860..3eb0c1b 100644 --- a/zundler/assets/main.js +++ b/zundler/assets/main.js @@ -296,5 +296,3 @@ var hide_loading_indictator = function() { var loading = document.getElementById('loading-indicator'); loading.style.display = 'none'; } - -//# sourceURL=main.js diff --git a/zundler/embed.py b/zundler/embed.py index c302267..e7f90dc 100644 --- a/zundler/embed.py +++ b/zundler/embed.py @@ -80,7 +80,7 @@ def embed_assets(index_file, output_path=None, append_pre="", append_post=""): "current_path": base_name, "file_tree": file_tree, "remote_resources": remote_resources, - "main": init_files["main.js"], + "main": init_files["main.js"] + "\n//# sourceURL=main.js", } global_context = json.dumps(global_context)