Skip to content

Commit 574d7e8

Browse files
committed
fix: corrected JS error in the browser console
1 parent 4c7f32c commit 574d7e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpmyfaq/admin/assets/js/configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const generateUUID = () => {
4040
/**
4141
* Sends a test email to the admin.
4242
*/
43-
export const handleSendTestMail = async () => {
43+
window.handleSendTestMail = async () => {
4444
const button = document.getElementById('btn-phpmyfaq-mail-sendTestEmail');
4545
if (button) {
4646
const csrf = document.querySelector('#pmf-csrf-token').value;
@@ -83,7 +83,7 @@ const displayResult = (button, message) => {
8383
/**
8484
* Generates an API token if the input field is empty.
8585
*/
86-
export const generateApiToken = () => {
86+
window.generateApiToken = () => {
8787
const buttonGenerateApiToken = document.getElementById('pmf-generate-api-token');
8888
const inputConfigurationApiToken = document.getElementById('edit[api.apiClientToken]');
8989

0 commit comments

Comments
 (0)