Skip to content

Commit c314e80

Browse files
committed
improve csp regex for Firefox
1 parent df9663b commit c314e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parsers/expression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function makeGetterFn (body) {
144144
} catch (e) {
145145
if (process.env.NODE_ENV !== 'production') {
146146
/* istanbul ignore if */
147-
if (e.toString().match(/unsafe-eval/)) {
147+
if (e.toString().match(/unsafe-eval|CSP/)) {
148148
warn(
149149
'It seems you are using the default build of Vue.js in an environment ' +
150150
'with Content Security Policy that prohibits unsafe-eval. ' +

0 commit comments

Comments
 (0)