Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-DevPopup CPAN distribution.

Report information
The Basics
Id: 127279
Status: open
Priority: 0/
Queue: CGI-Application-Plugin-DevPopup

People
Owner: Nobody in particular
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.08
Fixed in: (no value)



Subject: Allow to define the runmodes where a devpopup should be displayed / turn off DevPopup per runmode?
I do have runmodes that return JSON data for an ajax call. Using DevPopup, the script's JSON answer is augmented with DevPopup code, which breaks the JSON. Could be have a way to define the runmodes for which a DevPopup should be shown? Or, is there a way to turn off DevPopup for a given runmode?
On Wed Oct 03 05:51:43 2018, ASB wrote: Show quoted text
> I do have runmodes that return JSON data for an ajax call. > Using DevPopup, the script's JSON answer is augmented with DevPopup > code, which breaks the JSON. > > Could be have a way to define the runmodes for which a DevPopup should > be shown? > > Or, is there a way to turn off DevPopup for a given runmode?
There is code to suppress DevPopup when the response content type is not html, so make sure you send your JSON with the correct content-type header (it should be something like 'application/json').