1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/js/app.js

25 lines
593 B
JavaScript
Raw Normal View History

/**
2023-09-04 16:12:21 +02:00
* Invoice Ninja (https://invoiceninja.com).
*
2023-09-04 16:12:21 +02:00
* @link https://github.com/invoiceninja/invoiceninja source repository
2020-08-24 10:28:55 +02:00
*
2023-09-04 16:12:21 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
2020-06-16 18:09:43 +02:00
*/
2023-09-04 16:12:21 +02:00
import axios from 'axios';
import cardValidator from 'card-validator';
window.axios = axios;
window.valid = cardValidator;
/**
* Remove flashing message div after 3 seconds.
*/
document.querySelectorAll('.disposable-alert').forEach((element) => {
setTimeout(() => {
element.remove();
}, 5000);
});