-
-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Description
I have ace-editor embedded into a panel and when code creates an exception that results in the display of the bluescreen, it loops through all stylesheets and disables them. If I disable this block of code:
tracy/src/Tracy/BlueScreen/assets/bluescreen.js
Lines 11 to 18 in f652fae
| for (let i = 0; i < document.styleSheets.length; i++) { | |
| let style = document.styleSheets[i]; | |
| if (!style.ownerNode.classList.contains('tracy-debug')) { | |
| style.oldDisabled = style.disabled; | |
| style.disabled = true; | |
| styles.push(style); | |
| } | |
| } |
all the styles I need for ace-editor remain intact.
I guess you're trying to make sure there are no styles that might mess with the look of the bluescreen, but it feels a bit too aggressive.
I know that it ignores <style class="tracy-debug"> but because ace-editor comes as a package I don't want to hack that to add the class.
Are there any other solutions that might work rather than disabling all other stylesheets?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels