Skip to content

Commit

Permalink
Fix watch
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevalk committed Jun 28, 2022
1 parent 9cf3a17 commit 7e68a09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}
},
"rules": {
"prettier/prettier": 0,
"linebreak-style": 0,
"array-bracket-spacing": ["error", "always"],
"brace-style": ["error", "1tbs"],
Expand Down
3 changes: 2 additions & 1 deletion assets/src/js/admin/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
document.addEventListener( 'DOMContentLoaded', () => {
const saveSettings = document.getElementById( 'plausible-analytics-save-btn' );
const formElement = document.getElementById( 'plausible-analytics-settings-form' );

// Bailout, if `formElement` doesn't exist.
if ( null === formElement ) {
return;
}

const saveSettings = document.getElementById( 'plausible-analytics-save-btn' );

saveSettings.addEventListener( 'click', ( e ) => {
e.preventDefault();
const formData = new FormData( formElement );
Expand Down
6 changes: 2 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ const config = {
loader: 'sass-loader',
options: {
sourceMap: true,
sassOptions: {
outputStyle: ( inProduction ? 'compressed' : 'nested' ),
},
},
} ],
},
],
},

// Image files.
Expand Down

0 comments on commit 7e68a09

Please sign in to comment.