seitime-frappe/frappe/public/js/libs.bundle.js
marination 5f6a6a025a fix: Load map libraries at build time to avoid async issues during geolocation render
- When gelocation control is built, it awaits loading of libraries
- Withi the control everything is await but a layer above where multiple controls are sequentially built this breaks
- Form render goes ahead without waiting for the gelocation control
- The `onload_post_render` in `Location` cannot find the map wrapper as the control is still being built
- Therefore, on a hard load, the control does not show up and appears on soft reload.
2023-05-19 16:56:54 +05:30

13 lines
457 B
JavaScript

import "./jquery-bootstrap";
import "./lib/moment";
import "../js/lib/leaflet/leaflet.js";
import "../js/lib/leaflet_easy_button/easy-button.js";
import "../js/lib/leaflet_draw/leaflet.draw.js";
import "../js/lib/leaflet_control_locate/L.Control.Locate.js";
import Sortable from "sortablejs";
window.SetVueGlobals = (app) => {
app.config.globalProperties.__ = window.__;
app.config.globalProperties.frappe = window.frappe;
};
window.Sortable = Sortable;