summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2006-11-10 18:35:04 +0000
committerChristian Schneider2006-11-10 18:35:04 +0000
commit46d107c3052b4dfdda5920f90fc5c5475f785008 (patch)
tree0799ee49c18532789e10064c31722a238e53a02d
parentee9a1d7371aebf93c6ca0e16876daeef264d4118 (diff)
downloaditools-46d107c3052b4dfdda5920f90fc5c5475f785008.tar.gz
itools-46d107c3052b4dfdda5920f90fc5c5475f785008.tar.bz2
itools-46d107c3052b4dfdda5920f90fc5c5475f785008.zip
Skip stylesheet test for Konqueror as getPropertyValue does not work
-rw-r--r--itjs/boot.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 8ca539f..78d1fd1 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -50,12 +50,13 @@ function it_boot_report(msg, file, line, error)
function it_boot(file, isretry)
{
window.it_domtimer = null;
+ var konqueror = navigator.userAgent.match(/konqueror/i);
var doc = document;
var dom = doc && (dom = document.getElementById('it_boot_dom')); // HTML has been rendered
var view = dom && doc.defaultView; // We can check if stylesheet is active
var style = view && view.getComputedStyle && view.getComputedStyle(dom, '');
- var css = style && style.getPropertyValue && (style.getPropertyValue("visibility") == "hidden"); // CSS active (inline style on tag)
- var stylesheet = style && style.getPropertyValue && (style.getPropertyValue("display") == "none"); // External stylesheet loaded
+ var css = style && style.getPropertyValue && ((style.getPropertyValue("visibility") == "hidden") || konqueror); // CSS active (inline style on tag)
+ var stylesheet = style && style.getPropertyValue && ((style.getPropertyValue("display") == "none") || konqueror); // External stylesheet loaded
if (!(doc || !(it_boot_status = "doc")) || !(dom || !(it_boot_status = "dom")) || (style && (style.length > 0) && !(stylesheet || !(it_boot_status = "stylesheet"))))
{