[Kimchi-devel] [PATCH] [Kimchi] Bugfix 843: Add sourceURL comment for kimchi.min.js

Jose Ricardo Ziviani joserz at linux.vnet.ibm.com
Mon Feb 15 17:48:11 UTC 2016


 - browser javascript debuggers cannot inspect dynamic loaded javascript
   because such scripts have no name (they are created with eval). The
   comment //# sourceURL=name is a way to solve it.
 - https://developer.chrome.com/devtools/docs/javascript-debugging

Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
---
 ui/js/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/js/Makefile.am b/ui/js/Makefile.am
index c9d1218..c24feeb 100644
--- a/ui/js/Makefile.am
+++ b/ui/js/Makefile.am
@@ -23,5 +23,6 @@ dist_js_DATA = kimchi.min.js $(filter-out kimchi.min.js, $(wildcard *.js))
 
 kimchi.min.js: src/*.js
 	cat $(sort $^) > $@
+	echo "//# sourceURL=kimchi.min.js" >> $@
 
 CLEANFILES = kimchi.min.js
-- 
1.9.1




More information about the Kimchi-devel mailing list