Fix up the configuration token, app.url should already have the protocol included with it. Appending a new one messes it up

This commit is contained in:
Emmet Young 2017-01-23 11:02:10 +11:00
parent a2b56e865e
commit 7bd1fbb14c

View file

@ -505,7 +505,7 @@ $(document).ready(function () {
type: 'success',
title: 'Token created.',
text: 'Your token will expire at ' + data.expires_at + '<br /><br />' +
'<p>To auto-configure your node run<br /><small><pre>npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'</pre></small></p>',
'<p>To auto-configure your node run<br /><small><pre>npm run configure -- --panel-url {{ config('app.url') }} --token '+data.token+'</pre></small></p>',
html: true
})
})