Skip to content

Commit

Permalink
fix: change a way get js file
Browse files Browse the repository at this point in the history
  • Loading branch information
agoalofalife authored Jan 13, 2023
1 parent 2ed8ac9 commit 693fa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrchidFieldsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function boot(Dashboard $dashboard): void
$this->loadViewsFrom($path, 'platform-fields');

$dashboard->registerResource('scripts', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js');
$dashboard->registerResource('scripts', config('app.asset_url') . '/vendor/orchid-fields/js/orchid_fields.js');
$dashboard->registerResource('scripts', asset('/vendor/orchid-fields/js/orchid_fields.js'));
$dashboard->registerResource('scripts', 'https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/js/ion.rangeSlider.min.js');
$dashboard->registerResource('stylesheets', 'https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/css/ion.rangeSlider.min.css');
$this->registerAssets();
Expand Down

0 comments on commit 693fa00

Please sign in to comment.