ui: fix polyfill link generation

This commit is contained in:
undefined committed 2022-03-15 10:37:34 +08:00
1 parent c6485c536e
commit 545190d5fe
3 files changed
+5 -5

No files matched your search

@@ -46,7 +46,7 @@
} catch(e) {
const s = document.createElement('script');
s.async = false;
s.src = "{{ '/polyfill.js' if process.env.DEV else static_url(global.Hydro.version['ui-default'] + '.polyfill.js') }}";
s.src = "{{ '/polyfill.js' if process.env.DEV else static_url('polyfill-' + global.Hydro.version['ui-default'] + '.js') }}";
document.head.appendChild(s);
}
</script>