diff --git a/src/gelato.js b/src/gelato.js index 7f692a4..f4fbbf0 100644 --- a/src/gelato.js +++ b/src/gelato.js @@ -49,6 +49,10 @@ function isWebsite() { return _.includes(document.location, 'http'); } +function reload(forcedReload) { + document.location.reload(forcedReload); +} + function setCookie(name, value, days) { let expires = ''; @@ -74,6 +78,8 @@ Gelato.isLocalhost = isLocalhost; Gelato.isWebsite = isWebsite; +Gelato.reload = reload; + Gelato.setCookie = setCookie; Gelato._BUILD = '{!date!}';