rugby-board/rugby-board-node

View on GitHub
client/util.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable import/prefer-default-export */
export function setDocumentTitle(title) {
  if (title === '') {
    document.title = 'Rugby News Board';
  } else {
    document.title = `${title} | Rugby News Board`;
  }
}