- recognize konqueror from kde3 as WebKit to setup dom:loaded event emulation
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 12 Mar 2009 01:01:43 +0000 (01:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-lightbox-konqueror.patch -> 1.1

dokuwiki-plugin-lightbox-konqueror.patch [new file with mode: 0644]

diff --git a/dokuwiki-plugin-lightbox-konqueror.patch b/dokuwiki-plugin-lightbox-konqueror.patch
new file mode 100644 (file)
index 0000000..b0bfa4c
--- /dev/null
@@ -0,0 +1,11 @@
+--- lightbox/script.js~        2009-03-12 03:00:14.000000000 +0200
++++ lightbox/script.js 2009-03-12 03:00:15.750346833 +0200
+@@ -12,7 +12,7 @@
+   Browser: {
+     IE:     !!(window.attachEvent && !window.opera),
+     Opera:  !!window.opera,
+-    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
++    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1 || navigator.userAgent.indexOf('KHTML') > -1,
+     Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
+     MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
+   },
This page took 0.033484 seconds and 4 git commands to generate.