aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 18:19:43 -0400
committerGitHub <noreply@github.com>2020-09-04 18:19:43 -0400
commitdd8e32e7c40011de95e6c81211e2b434be2fde78 (patch)
treee9247c8f5c62b21efd46dfa13d24dc73ccbd01dd /ext/bg/js
parent1cc9f4b1a480396f8e9cea23ebb1d410b048a518 (diff)
Fix template renderer sandbox compatibility (#770)
* Use Object.prototype.hasOwnProperty.call instead of hasOwn * Disable WebExtension and core.js APIs for template-renderer.js
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/template-renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/template-renderer.js b/ext/bg/js/template-renderer.js
index 1f68e3e0..5dd33814 100644
--- a/ext/bg/js/template-renderer.js
+++ b/ext/bg/js/template-renderer.js
@@ -43,7 +43,7 @@ class TemplateRenderer {
}
const markerPre = data.marker;
- const markerPreHas = hasOwn(data, 'marker');
+ const markerPreHas = Object.prototype.hasOwnProperty.call(data, 'marker');
try {
this._stateStack = [new Map()];
data.marker = marker;