chg: pkg: upgrade both backend and frontend to the latest available version #13
This commit is contained in:
+3
-4
@@ -73,12 +73,11 @@ const bindInvisibleCap = (form, apiEndpoint) => {
|
||||
};
|
||||
|
||||
const initInvisibleCap = () => {
|
||||
const endpointSource =
|
||||
document.querySelector('[data-cap-api-endpoint]') ||
|
||||
document.getElementById('mine-wrapper');
|
||||
const endpointSource = document.querySelector('[data-cap-api-endpoint]')
|
||||
|| document.getElementById('mine-wrapper');
|
||||
const apiEndpoint = endpointSource?.dataset.capApiEndpoint;
|
||||
|
||||
if (!apiEndpoint || typeof window.Cap !== 'function') {
|
||||
if ('function' !== typeof window.Cap || !apiEndpoint) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user