Skip to content

Commit fc4c661

Browse files
rmamchykFrazerBayley
authored andcommitted
fix: ie does not support arrow functions
1 parent 1ed5346 commit fc4c661

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/modes/qa.mode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const QA_RE = 'evolvCandidateToken=([_0-9]+)';
33
const QA_RE_REPLACE = '#?&?' + QA_RE;
44

55
export default {
6-
shouldActivate() {
6+
shouldActivate: function() {
77
return new RegExp(QA_RE).test(window.location.hash);
88
},
9-
activate() {
9+
activate: function() {
1010
const match = window.location.hash.match(new RegExp(QA_RE));
1111

1212
if (match) {

src/webloader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ function main() {
6969
}
7070
}
7171

72-
modes.forEach(mode => mode.shouldActivate() && mode.activate());
72+
modes.forEach(function(mode) {
73+
return mode.shouldActivate() && mode.activate()
74+
});
7375

7476
const candidateToken = evolv.retrieve('candidateToken', true);
7577

0 commit comments

Comments
 (0)