Created
February 3, 2017 11:31
-
-
Save looneym/1c8faa13f1a47e6ca9a2f92175a3eb39 to your computer and use it in GitHub Desktop.
Conditionally add the messenger at certain times.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentdate = new Date(); | |
var currentHour = currentDate.getHours(); | |
if (if currentHour > 9 && currentHour < 5)){ | |
window.intercomSettings = { | |
app_id: APP_ID, | |
}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment