--- a/server.py +++ b/server.py @@ -151,6 +151,10 @@ script = root.makeelement('script') script.set('src', url_for('static', filename='text-annotation.js')) + + config_script = root.makeelement('script') + config_script.set('src', url_for('static', filename='config.js')) + tree = root.makeelement('script') tree.set('src', url_for('static', filename='tree.js')) @@ -188,6 +192,7 @@ root.head.append(us) root.head.append(tree) root.head.append(script) + root.head.append(config_script) return lxml.html.tostring(root) --- a/static/text-annotation.js +++ b/static/text-annotation.js @@ -218,8 +218,4 @@ } }; })(); -var config = { - 'postTweetUrl':'http://localhost:5001', - 'indexer':'http://localhost:5000' -};