mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 09:13:38 -08:00
Add a sourceURL to the end of eval'd code
This, miraculously, lets Chrome dev tools list tiddler modules in the script tag by their proper titles. Which lets you set breakpoints within them!!!!! https://chromedevtools.googlecode.com/svn-history/r421/trunk/tutorials/b reapoints/index.html#regular
This commit is contained in:
parent
c7b4febae3
commit
8a7d0f53d3
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ $tw.utils.evalGlobal = function(code,context,filename) {
|
|||
// Compile the code into a function
|
||||
var fn;
|
||||
if($tw.browser) {
|
||||
fn = window["eval"](code);
|
||||
fn = window["eval"](code + "\n\n//# sourceURL=" + filename);
|
||||
} else {
|
||||
fn = vm.runInThisContext(code,filename);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue