cinera_pre.js: Fix GetOrSetRule()

This commit is contained in:
Matt Mascarenhas 2021-02-13 00:12:19 +00:00
parent 0cfa87ba84
commit 22633794b5
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ GetOrSetRule(SelectorText)
{
var cssRuleCode = document.all ? 'rules' : 'cssRules'; // account for IE and FF
var Rules = StyleSheet[cssRuleCode];
var RuleIndex = StyleSheet.insertRule(SelectorText + "{}", StyleSheet.length - 1);
var RuleIndex = StyleSheet.insertRule(SelectorText + "{}", Rules.length - 1);
Result = Rules[RuleIndex];
}
}