Contribution
Reza Rosli on CandyPixel
Updated the service’s embed template for the 3.6.11 browser rewrite and gave developers one place to swap the script URL during debugging.
On 16 March 2022, Reza moved the script URL to a variable near the top of the service’s embed template. This created a single edit point for testing another browser script. A week later he updated the same template for 3.6.11 and warned that earlier snippets and custom code were incompatible. The browser-side story shows what changed inside the embed. The template advanced again to 3.7.1 in April.
From the diff
app/template/snippet.txt at 6b0cadb
- cp_script.push("[APPJS]");
+ cp_script.push(SCRIPT_URL);
The template now takes its script location from a named variable. This moves the edit point out of the code that assembles the script list.
Selected commit log
Archived repository SugarRush/CandyPixel.
- 2022-03-16 ·
6b0cadb· Make the script source url a variable on top for easy debugging - 2022-03-23 ·
d76e683· Update for v3.6.11 - 2022-04-20 ·
d59c937· Update for 3.7.1