Files
brave-core/components/common/loadTimeData.js
T
Pete Miller c824bb8d56 Use es-modules for chromium core JS...
- cr.js methods now included via es-modules
- obsolete cr.define converted to simple window property. Removed unused uses of globally-accessible window.xyz.initialize properties
- removed i18n DOM attributes (i18n-content, i18n-values)
- importing load_time_data via esmodules is difficult considering strings.m.js must make a request to the module at the same url. webpack needs to be able to also import from the url, but even the latest wepback version is still incapable https://github.com/brave/brave-browser/issues/16182
- removed often-unused imports (e.g. util.js, promise_resolver.js, i18n_template_no_process)
2021-06-29 16:37:16 -04:00

5 lines
233 B
JavaScript

if (!window.loadTimeData) {
console.error('window.loadTimeData was not found. Make sure you include strings.m.js or load_time_data.m.js directly. Perhaps there is a timing issue?')
}
export const loadTimeData = window.loadTimeData