Skip to content

Commit

Permalink
Moved pGenerator script to default layout footer
Browse files Browse the repository at this point in the history
This fixes an issue where the password generator wouldn’t load in a modal in Chrome
  • Loading branch information
snipe committed Aug 5, 2020
1 parent 606b7e9 commit 24c4305
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions resources/views/layouts/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@


<script src="{{ url(mix('js/dist/all.js')) }}" nonce="{{ csrf_token() }}"></script>
<script src="/js/pGenerator.jquery.js"></script>

@section('moar_scripts')
@show
Expand Down
1 change: 0 additions & 1 deletion resources/views/users/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ class="col-md-5 tooltip-base permissions-item"
@stop

@section('moar_scripts')
<script src="{{ asset('js/pGenerator.jquery.js') }}"></script>

<script nonce="{{ csrf_token() }}">
$(document).ready(function() {
Expand Down

0 comments on commit 24c4305

Please sign in to comment.