Skip to content

Commit

Permalink
path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmitchell85 committed Aug 21, 2023
1 parent 5435c93 commit 822f731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/js/TailwindColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export default {
mounted() {
if (this.value) {
let parts = this.value.split('-');
if (parts.length == 2) {
if (parts.length === 2) {
this.selected.color = parts[0];
this.selected.weight = parts[1];
}
if (parts.length == 3) {
if (parts.length === 3) {
this.selected.color = parts[1];
this.selected.weight = parts[2];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/TailwindPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function setTailwindColors()

private function loadTailwindConfig()
{
if (File::exists(__DIR__.'/../../tailwind.config.php')) {
if (File::exists(base_path('tailwind.config.php'))) {
$this->tailwind_config = require base_path('tailwind.config.php');
$this->missing_file = false;
} else {
Expand Down

0 comments on commit 822f731

Please sign in to comment.