Jump to content


Photo

HTML Customer Display 0.3.1 upgrade


  • Please log in to reply
2 replies to this topic

#1 jhutchings

jhutchings

    Advanced Member

  • Members
  • PipPipPipPip
  • 123 posts

Posted 08 July 2015 - 08:05 AM

What is the correct procedure to upgrade an existing HTML Customer Display user with the latest version?



#2 byles

byles

    Super Guru

  • ICRTouch Support
  • PipPipPipPipPipPip
  • 1,199 posts

Posted 08 July 2015 - 08:05 AM

Just unzip and replace what you've got already - unless of course you've made changes and then you might want to make a backup first :) 

 

If this update is solely for the minimizing thingy fix, you can replace the fullscreen chunk of code from line 60ish in app\js\customerdisplay.js with the following:

/**
 * Set window position and go fullscreen
 * 
 * If the left position isn't set in the package.json file, 
 * set the position to the width of the first display. We're
 * assuming the second display starts there.
 */
win.x = gui.App.manifest.window.left || screen.width;
win.y = gui.App.manifest.window.top || 0;
if (gui.App.manifest.CustomerDisplay.fullscreen) {
    win.enterKioskMode();
    win.on('minimize', function() {
        win.restore();
        win.enterKioskMode();
    });
}


#3 jhutchings

jhutchings

    Advanced Member

  • Members
  • PipPipPipPip
  • 123 posts

Posted 08 July 2015 - 08:05 AM

Thanks for the advice.