Skip to content

Commit

Permalink
Added zoom level
Browse files Browse the repository at this point in the history
  • Loading branch information
maanitm committed Aug 22, 2024
1 parent bff360f commit fe03e1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const REMOTE_DEBUG_PORT = process.env.REMOTE_DEBUG_PORT || 35173;
const FLAGS = process.env.FLAGS || null;
const EXTRA_FLAGS = process.env.EXTRA_FLAGS || null;
const HTTPS_REGEX = /^https?:\/\//i //regex for HTTP/S prefix
const ZOOM_LEVEL = process.env.ZOOM_LEVEL || '1.0';

// Environment variables which can be overriden from the API
let kioskMode = process.env.KIOSK || '0';
Expand Down Expand Up @@ -114,6 +115,7 @@ let launchChromium = async function(url) {
let balenaFlags = [
'--window-size=' + WINDOW_SIZE,
'--window-position=' + WINDOW_POSITION,
'--force-device-scale-factor=' + ZOOM_LEVEL,
'--autoplay-policy=no-user-gesture-required',
'--noerrdialogs',
'--disable-session-crashed-bubble',
Expand Down Expand Up @@ -388,4 +390,4 @@ app.listen(API_PORT, () => {

process.on('SIGINT', () => {
process.exit();
});
});

0 comments on commit fe03e1d

Please sign in to comment.