mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
better fix for IE8 page up down
This commit is contained in:
parent
9fcabfa8ac
commit
adaded343d
1 changed files with 4 additions and 2 deletions
|
@ -156,12 +156,14 @@ function Ace2Inner(){
|
|||
|
||||
// Ugly hack for Firefox 18
|
||||
// get the timeout and interval methods from the parent iframe
|
||||
var FIREFOX = /Firefox/i.test(navigator.userAgent);
|
||||
if(FIREFOX){
|
||||
// This hack breaks IE8
|
||||
try{
|
||||
setTimeout = parent.setTimeout;
|
||||
clearTimeout = parent.clearTimeout;
|
||||
setInterval = parent.setInterval;
|
||||
clearInterval = parent.clearInterval;
|
||||
}catch(err){
|
||||
// IE8 can panic here.
|
||||
}
|
||||
|
||||
var textFace = 'monospace';
|
||||
|
|
Loading…
Reference in a new issue