Skip to content

Commit

Permalink
add quotes for object keys that are output to template
Browse files Browse the repository at this point in the history
  • Loading branch information
krdwan committed Sep 14, 2020
1 parent 991f2ec commit 955c8db
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions extensions/amp-date-countdown/1.0/date-countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ function getYDHMSFromMs(ms, biggestUnit) {
);

return {
d,
dd: padStart(d),
h,
hh: padStart(h),
m,
mm: padStart(m),
s,
ss: padStart(s),
'd': d,
'dd': padStart(d),
'h': h,
'hh': padStart(h),
'm': m,
'mm': padStart(m),
's': s,
'ss': padStart(s),
};
}

Expand Down

0 comments on commit 955c8db

Please sign in to comment.