Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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?
Download (untitled) / with headers
text/plain 301b
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?
Download (untitled) / with headers
text/plain 555b
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').


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.