fix sourceURL so it works on ie11 and latest chrome

This commit is contained in:
Sam 2015-05-28 14:43:12 +10:00
parent e101396ea1
commit f3a5a6f8dc
1 changed files with 2 additions and 3 deletions

View File

@ -5,10 +5,9 @@ class SourceURL < Tilt::Template
end
def evaluate(scope, locals, &block)
code = ""
code << "eval("
code = "eval("
code << data.inspect
code << " + \"\\n//@ sourceURL=/'#{scope.logical_path}'\""
code << " + \"\\n//# sourceURL=#{scope.logical_path}\""
code << ");\n"
code
end