Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present #36

Closed
Dhana-Krishnasamy opened this issue Nov 19, 2013 · 7 comments

Comments

@Dhana-Krishnasamy
Copy link

This error is due to an incorrect use of insertRule method in 'NETEYE Activity Indicator jQuery Plugin'. Since KoLite uses the same activity plugin , KoLite client are also affected by it. Could someone take a look at this?

More Info:
http://stackoverflow.com/questions/20010347/uncaught-typeerror-failed-to-execute-insertrule-on-cssstylesheet-2-argumen

https://github.com/bizzynut/jquery-plugins/commit/f000dc6347fbcabf4e3fd47732ddd97c73067755

@ghost
Copy link

ghost commented Nov 19, 2013

I'm seeing this too. I added 0 to the insertRule(rule) call and it works again.

@marvc1
Copy link

marvc1 commented Nov 22, 2013

I get this issue too :-(.

@hfjallemark
Copy link

So this PR didn't solve it: bc27644?

@marvc1
Copy link

marvc1 commented Nov 27, 2013

@hfjallemarkm, in my case, 'document.styleSheets[0].cssRules' is always undefined. So Merge pull request #34 doesn't solve the problem.

I'm using Nuget KoLite package v1.1.0, and Chrome.

However this, as suggested above work perfectly.

Line 159: document.styleSheets[0].insertRule(rule, 0);

@hfjallemark
Copy link

Pushed now. Closing this issue, please reopen if the bug returns.

@luisrudge
Copy link

I'm having this issue again with chrome 36.0.1985.125 m

@RNwebdk
Copy link

RNwebdk commented Dec 7, 2020

In my case it was adblock playing tricks on me, turn it off and the message should go away
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants