Skip to content

Commit fac2a4d

Browse files
committed
Chromium bug
Demo.js includes a workaround for Chromium's incorrect initialization of alternate stylesheets.
1 parent 435e5bb commit fac2a4d

File tree

13 files changed

+33
-13
lines changed

13 files changed

+33
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Release 1.1.1 (May 13, 2018)
2+
3+
* Updated the demo to handle a Chromium bug that affects the proper operation of themes. See README.MD and demo.js for more information.
4+
5+
16
# Release 1.1 (May 9, 2018)
27

38
This release improves theme support.

README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
RealtimeMonitor v1.1
2-
====================
1+
RealtimeMonitor v1.1.1
2+
======================
33

44
See LICENSE for this software's licensing terms. At first glance, it resembles the BSD-3 license, but it contains a significant difference which prohibits certain use. Read it carefully. Licenses for third-party components used by RealtimeMonitor are in THIRD_PARTY_LICENSES.MD.
55

@@ -173,7 +173,7 @@ Chrome only displays notifications if the page is loaded over HTTPS - or so I've
173173

174174
The application includes several alternate color schemes, or themes. Themes are implemented by alternate stylesheets which override portions of the base stylesheet. Some browsers, such as Firefox and IE, place alternate stylesheets in a menu that the user can then select from to switch to a different theme. Chrome does not have built-in support for this functionality. I've read that there are third-party Chrome addons that add this capability, but I haven't looked into it any further than that.
175175

176-
Several different aspects of the panels are changed by theming, but of particular note are the colors used to represent statuses of normal, warning and danger. Some themes use green/yellow/red while others use green/orange/red, depending on the panel's background color.
176+
Chromium (and by extension, all Chromium-based browsers) has a bug where alternate stylesheets aren't correctly initialized upon page load. Chromium initializes the 'disabled' property of every alternate stylesheet to `false`, which is wrong. The workaround for this needs to be made at the page level, not within RealtimeMonitor. If you plan on using themes, you need to forcibly set this property to `true` on all alternate stylesheets before instantiating RealtimeMonitor. See the `fixBrokenBrowsers` function in `demo.js` for code which does this.
177177

178178

179179
## Third-party Attribution

css/realtimeMonitor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/burlywood.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/darkslategray.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/deeppurple.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/dimgray.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/lightslategray.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

css/themes/lightsteelblue.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* RealtimeMonitor v1.1
2+
* RealtimeMonitor v1.1.1
33
* https://www.github.com/kloverde/js-RealtimeMonitor
44
*
55
* Copyright (c) 2018, Kurtis LoVerde

0 commit comments

Comments
 (0)