Fixed the iframe problems

This commit is contained in:
Peter 'Pita' Martischka 2011-07-27 15:11:30 +01:00
parent f4e04be9da
commit 115f7d6b51
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ function makeCSSManager(emptyStylesheetTitle, top)
function getSheetByTitle(title, top)
{
if(top)
var allSheets = window.top.document.styleSheets;
var allSheets = window.parent.parent.document.styleSheets;
else
var allSheets = document.styleSheets;