mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use .includes instead of .indexOf
This commit is contained in:
parent
32184330d9
commit
a55aa61d71
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ const deploymentColour = settings.deploymentColour
|
|||
var serviceCloseTime
|
||||
|
||||
function updateDeploymentStatus(fileContent) {
|
||||
const closed = fileContent && fileContent.indexOf(deploymentColour) === -1
|
||||
const closed = fileContent && !fileContent.includes(deploymentColour)
|
||||
if (closed && !settings.serviceIsClosed) {
|
||||
settings.serviceIsClosed = true
|
||||
serviceCloseTime = Date.now() + 60 * 1000 // delay closing by 1 minute
|
||||
|
|
Loading…
Reference in a new issue