Commit 058d04c2 authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! Re-introduce --js and --js-embed when pkg_resource is available.

parent 499e12b3
......@@ -963,8 +963,8 @@ def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict,
apdex_y_min = hit_y_min = None
out.write('<!DOCTYPE html>\n<html><head><meta charset="%s">'
'<title>Stats</title>' % encoding)
js_path = getattr(args, 'js', None)
js_embed = getattr(args, 'js_embed', js_path is None)
js_path = args.js
js_embed = js_path is None or args.js_embed
if js_embed:
out.write('<style>')
out.write(getResource('apachedex.css'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment