Commit 2ae7ef91 authored by Marco Kellershoff's avatar Marco Kellershoff
Browse files

Fix selected syntax onload from token

parent d373853b
......@@ -285,7 +285,7 @@
shared_code = url_params.get('t');
syntax = url_params.get('s');
if (self.isAllowedSyntax(syntax) === true) {
EDITOR.getSession().setMode('ace/mode/'+syntax);
self.setEditorSyntax(s);
}
self.compression.decompress(shared_code, function(err, result){
if (!err) {
......
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