Skip to content

Commit ae601c9

Browse files
committed
Restrict implementation to support play cmd only
1 parent 444a068 commit ae601c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/scripts/controllers/Main.coffee

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ angular.module('neo4jApp.controllers')
177177
$scope.unauthorized = yes
178178

179179
if cmdParam = Utils.getUrlParam('cmd', window.location.href)
180-
if cmdParam[0] is 'cypher'
181-
cmdCommand = ''
182-
else
183-
cmdCommand = "#{Settings.cmdchar}#{cmdParam[0]} "
180+
return unless cmdParam[0] is 'play'
181+
cmdCommand = "#{Settings.cmdchar}#{cmdParam[0]} "
184182
cmdArgs = Utils.getUrlParam('arg', decodeURIComponent(window.location.href)) || []
185183
Editor.setContent(cmdCommand + cmdArgs.join(' '))
186184
])

0 commit comments

Comments
 (0)