Jelajahi Sumber

improve csp regex for Firefox

Evan You 10 tahun lalu
induk
melakukan
c314e8026c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/parsers/expression.js

+ 1 - 1
src/parsers/expression.js

@@ -144,7 +144,7 @@ function makeGetterFn (body) {
   } catch (e) {
     if (process.env.NODE_ENV !== 'production') {
       /* istanbul ignore if */
-      if (e.toString().match(/unsafe-eval/)) {
+      if (e.toString().match(/unsafe-eval|CSP/)) {
         warn(
           'It seems you are using the default build of Vue.js in an environment ' +
           'with Content Security Policy that prohibits unsafe-eval. ' +