|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
856 bytes
|
| Line | |
|---|
| 1 | /* global __react_refresh_library__ */
|
|---|
| 2 |
|
|---|
| 3 | const safeThis = require('core-js-pure/features/global-this');
|
|---|
| 4 | const RefreshRuntime = require('react-refresh/runtime');
|
|---|
| 5 |
|
|---|
| 6 | if (process.env.NODE_ENV !== 'production') {
|
|---|
| 7 | if (typeof safeThis !== 'undefined') {
|
|---|
| 8 | var $RefreshInjected$ = '__reactRefreshInjected';
|
|---|
| 9 | // Namespace the injected flag (if necessary) for monorepo compatibility
|
|---|
| 10 | if (typeof __react_refresh_library__ !== 'undefined' && __react_refresh_library__) {
|
|---|
| 11 | $RefreshInjected$ += '_' + __react_refresh_library__;
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | // Only inject the runtime if it hasn't been injected
|
|---|
| 15 | if (!safeThis[$RefreshInjected$]) {
|
|---|
| 16 | // Inject refresh runtime into global scope
|
|---|
| 17 | RefreshRuntime.injectIntoGlobalHook(safeThis);
|
|---|
| 18 |
|
|---|
| 19 | // Mark the runtime as injected to prevent double-injection
|
|---|
| 20 | safeThis[$RefreshInjected$] = true;
|
|---|
| 21 | }
|
|---|
| 22 | }
|
|---|
| 23 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.