-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Yes
-
Yes
-
SPA Editor 12, SPA Editor 13, SPA Editor 14, UI Framework & 6.2 Ramp up 15
-
3
User Story: As a SPA developer, I want to know if my SPA is in Pages Editor, Pages Preview or in Production, so that I can potentially hit different URL's for content or do rendering or other things conditionally.
Notes:
The page editor could set some globally accessible properties, for example by writing to the window object. The absence of these properties could be interpreted as being in production.
For example:
window.is_pages_app_editor = true;
window.is_pages_app_preview = true;
Acceptance criteria