Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Fixes #96. Do not expose filePath to the browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahrens committed Oct 22, 2017
1 parent 834a210 commit 7311294
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/content/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export default function prepPage(meta, options, isDev) {
},

get meta() {
return meta
const cleanedMeta = Object.assign({}, meta)
delete cleanedMeta.filePath
return cleanedMeta
},

get path() {
Expand Down

0 comments on commit 7311294

Please sign in to comment.