From d7cc9f7bec0893feb11d9b1a6c684eb917cec594 Mon Sep 17 00:00:00 2001 From: Julian Labus <julian@labus-online.de> Date: Fri, 8 Feb 2019 16:33:30 +0100 Subject: [PATCH] make page title configurable --- app.js | 4 ++++ config_template.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app.js b/app.js index b06e1aa..fdae0d4 100644 --- a/app.js +++ b/app.js @@ -196,6 +196,10 @@ var firmwarewizard = function() { }; window.onload = function() { + if (config.title !== undefined) { + document.title = config.title; + } + function parseURLasJSON() { var search = location.search.substring(1); return search ? JSON.parse( diff --git a/config_template.js b/config_template.js index 3fa86c0..c3bcdc0 100644 --- a/config_template.js +++ b/config_template.js @@ -30,6 +30,8 @@ var config = { './images/gluon-factory-example.html': 'stable', './images/gluon-sysupgrade-example.html': 'stable' }, + // page title + title: 'Firmware', // branch descriptions shown during selection branch_descriptions: { stable: 'Gut getestet, zuverlässig und stabil.', -- GitLab