diff --git a/package.json b/package.json index b468c7a..e1b5d92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xibosignage/xibo-layout-renderer", - "version": "1.0.6", + "version": "1.0.7", "description": "Xibo layout renderer is a shared library that performs rendering of given layout from sources (e.g. CMS Preview, Linux Player, etc.)", "main": "dist/xibo-layout-renderer.cjs.js", "module": "dist/xibo-layout-renderer.esm.js", diff --git a/src/xibo-layout-renderer.ts b/src/xibo-layout-renderer.ts index 43caffd..be7a1dc 100644 --- a/src/xibo-layout-renderer.ts +++ b/src/xibo-layout-renderer.ts @@ -268,7 +268,7 @@ export default function XiboLayoutRenderer( ) { newOptions.xlfUrl = newOptions.xlfUrl.replace(':layoutId', String(inputLayout.layoutId)); - } else if (self.config.platform === 'chromeOS') { + } else if (self.config.platform === 'chromeOS' && inputLayout !== undefined) { newOptions.xlfUrl = inputLayout.path as string; }