Skip to content

Commit c8dd3cf

Browse files
fixed compile error
1 parent 80960fc commit c8dd3cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/js/lib/angularjs-crypto.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ cryptoModule.config(['$httpProvider', function ($httpProvider) {
3737
},
3838
response: function (response) {
3939
var shouldCrypt = (response.config || false).crypt && defaultVal(response.config.decrypt, true);
40-
var pattern = (response.config)? response.config.pattern : cfg.pattern;
40+
var pattern = response.config && response.config.pattern;
41+
pattern = (pattern || cfg.pattern);
4142
if (missingCryptoJs(shouldCrypt, cfg, $q)) {
4243
return q.reject('CryptoJS missing');
4344
}

0 commit comments

Comments
 (0)