Skip to content

Commit 304a230

Browse files
committed
Look at the renderdata content type instead of type as it's more consistent in order to turn off the debugger on multi-marshalled sites
1 parent b759c12 commit 304a230

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Fixed
1313

14+
* Look at the renderdata content type instead of type as it's more consistent in order to turn off the debugger on multi-marshalled sites
1415
* [CBDEBUGGER-1] - Lucee debugger no longer shows below the cbDebugger. Turn off only on Ajax Calls
1516

1617
### Changed

interceptors/RequestCollector.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ component extends="coldbox.system.Interceptor" {
100100
// Has it not been disabled by the user programmatically
101101
arguments.event.getPrivateValue( "cbox_debugger_show", true ) AND
102102
// We don't have any render data OR the render data is HTML
103-
( structIsEmpty( arguments.event.getRenderData() ) || arguments.event.getRenderData().type == "HTML" ) AND
103+
( structIsEmpty( arguments.event.getRenderData() ) || arguments.event.getRenderData().contentType == "text/html" ) AND
104104
// Don't render in ajax calls
105105
!arguments.event.isAjax() AND
106106
// Don't render in testing mode

0 commit comments

Comments
 (0)