@nakedcreativity/cee-ms-node 0.3.13 → 0.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +8 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -174,6 +174,9 @@ function ceems(config) {
174
174
 
175
175
  var breadcrumbArray = []
176
176
  var path = ''
177
+ if(!scope.scopes[0].path){
178
+ return
179
+ }
177
180
  scope.scopes[0].path.forEach(handle => {
178
181
  path += handle
179
182
  if(site.pages[path]){
@@ -251,11 +254,15 @@ function ceems(config) {
251
254
 
252
255
  //console.log(req.body.page)
253
256
  req.query.edit = true;
254
-
257
+
255
258
  // if this was sent by the iframe, handle it differently
256
259
  if(req.query.iframe != null){
260
+ this.site = JSON.parse(decodeURIComponent(req.body.site))
261
+ site = this.site
257
262
  this.render(req, res, JSON.parse(decodeURIComponent(req.body.page)));
258
263
  }else {
264
+ this.site = req.body.site
265
+ site = this.site
259
266
  this.render(req, res, req.body.page);
260
267
  }
261
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {