(function (window, document) {
	'use strict';

	var config = window.tmsmtpAdminHead || {};
	if (config.forceLight) {
		document.documentElement.classList.remove('tmsmtp-admin-dark');
		return;
	}

	try {
		if ((window.localStorage.getItem('tmsmtpAdminDarkMode') || window.localStorage.getItem('tmsAdminDarkMode')) === '1') {
			document.documentElement.classList.add('tmsmtp-admin-dark');
		}
	} catch (error) {
	}
}(window, document));
