diff options
author | Christian Schneider | 2006-11-10 18:35:04 +0000 |
---|---|---|
committer | Christian Schneider | 2006-11-10 18:35:04 +0000 |
commit | 46d107c3052b4dfdda5920f90fc5c5475f785008 (patch) | |
tree | 0799ee49c18532789e10064c31722a238e53a02d /itjs | |
parent | ee9a1d7371aebf93c6ca0e16876daeef264d4118 (diff) | |
download | itools-46d107c3052b4dfdda5920f90fc5c5475f785008.tar.gz itools-46d107c3052b4dfdda5920f90fc5c5475f785008.tar.bz2 itools-46d107c3052b4dfdda5920f90fc5c5475f785008.zip |
Skip stylesheet test for Konqueror as getPropertyValue does not work
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/boot.js | 5 |
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")))) { |