]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blobdiff - javascript/util.js
convert JS to ES6 modules
[chrome-ext/clearhistory-advance-fork.git] / javascript / util.js
index 6a233b5a04424f05d0dd3972bff26c4a25bc1494..c56589f951c53ac044d2a75b552c45cec1dc3b15 100644 (file)
@@ -9,7 +9,7 @@
  * @param {number} time The time, in hours.
  * @return {Object} The time and units of time (pluralized and localized).
  */
-function getUnitsForTime(time) {
+export function getUnitsForTime(time) {
   var units = 'hour';
   if (time >= 24) {
     units = 'day';