Don't "preview" (i.e. execute) user JS on non-preview requests
authorRoan Kattouw <roan.kattouw@gmail.com>
Sun, 15 Nov 2015 01:28:25 +0000 (17:28 -0800)
committerRoan Kattouw <roan.kattouw@gmail.com>
Sun, 15 Nov 2015 01:28:25 +0000 (17:28 -0800)
commit710b532d5a3691f8fd13157a08277aa2a3753a06
treea2af7d65323c5b16515e0741b001f3615c15195a
parent1eb7bad9b3c167a3ee986594302bb20f11834f80
Don't "preview" (i.e. execute) user JS on non-preview requests

If you edit your user JS page, change the JS, and click Show preview,
the new JS will be loaded ("previewed"). However, this "preview"
is also engaged when you click Show changes, or click "Save page"
and fail to save. Don't do that: only "preview" JS when the user
has actually chosen to preview it.

Change-Id: Id9bcd235d3414b68de6e5d491b7b0c4f9b16e05f
includes/OutputPage.php