this.suspended = true;
this.loadFinished = false;
this.runningStatus = 'none';
+ this.isTVProfile = (wrt.getPlatformType() === "product_tv");
+ this.defaultBackgroundColor = (this.isTVProfile ? '#000' : '#FFF');
+ this.defaultTransparent = (this.isTVProfile ? true : false);
let self = this;
app.on('browser-window-created', function(event, window) {
getBrowserWindowOption(options) {
return {
fullscreen: false,
+ backgroundColor: this.defaultBackgroundColor,
+ transparent: this.defaultTransparent,
show: false,
webPreferences: {
nodeIntegration: options.isAddonAvailable,
});
}
let self = this;
- if (!(wrt.getPlatformType() === "product_tv")) {
+ if (!self.isTVProfile) {
self.showTimer = setTimeout(() => {
if (!self.suspended) {
console.log('FrameRendered not obtained from engine. To show window, timer fired');
if (self.runningStatus !== 'behind')
wrt.notifyAppStatus('preload');
}
- if((self.debugport) && (wrt.getPlatformType() === "product_tv")) {
+ if(self.debugport && self.isTVProfile) {
const kDebugPopupScript = "alert('port number :" + self.debugport +"')";
wrt.executeJS(self.mainWindow.webContents, kDebugPopupScript);
self.debugport = 0;