|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
314 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Detect Electron renderer / nwjs process, which is node, but we should
|
|---|
| 3 | * treat as a browser.
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|---|
| 7 | module.exports = require('./browser.js');
|
|---|
| 8 | } else {
|
|---|
| 9 | module.exports = require('./node.js');
|
|---|
| 10 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.