Skip to content

Commit

Permalink
full path
Browse files Browse the repository at this point in the history
recca0120 committed Jun 19, 2017
1 parent 5572f90 commit 968e4f0
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/views/panel.blade.php
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@
if(type==='script'){source='src';attributes.type='text/javascript'}else{source='href';attributes.type='text/css';attributes.rel='stylesheet'}
attributes[source]=filename;attributes.id='laravel-terminal-'+id;var element=createElement(type,attributes);element.onerror=function(){if(retry===1){return}setTimeout(function(){preload.createElement(type,id,f(filename),callback,--retry)})};if(callback){element.onload=callback};appendTo(element)}}}()
preload.createElement('link', 'css', '{{ parse_url(action('\Recca0120\Terminal\Http\Controllers\TerminalController@media', ['file' => 'css/terminal.css']), PHP_URL_PATH) }}');
preload.createElement('script', 'terminal', '{{ parse_url(action('\Recca0120\Terminal\Http\Controllers\TerminalController@media', ['file' => 'js/terminal.js']), PHP_URL_PATH) }}', function () {
preload.createElement('link', 'css', '{{ action('\Recca0120\Terminal\Http\Controllers\TerminalController@media', ['file' => 'css/terminal.css']) }}');
preload.createElement('script', 'terminal', '{{ action('\Recca0120\Terminal\Http\Controllers\TerminalController@media', ['file' => 'js/terminal.js']) }}', function () {
new Terminal('#panel-terminal-shell-{{ $id }}', {!! $options !!});
});
})();
2 changes: 1 addition & 1 deletion src/TerminalServiceProvider.php
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ public function register()
'basePath' => $app->basePath(),
'environment' => $app->environment(),
'version' => $app->version(),
'endpoint' => parse_url($app['url']->route(Arr::get($config, 'route.as').'endpoint'), PHP_URL_PATH),
'endpoint' => $app['url']->route(Arr::get($config, 'route.as').'endpoint'),
]));
});
}

0 comments on commit 968e4f0

Please sign in to comment.