f (hadFocus) {
			frame.blur();
			curElement.focus();
		}

		frame.contentWindow.addEventListener('DOMContentLoaded', function()
		{
			frame.style.visibility = 'visible';
		}, true);
		
		frameEscapeFunctions[frameName] = () => {
			setTimeout(() => {
				if (document.activeElement == document.body) {
					// Added questions marks to avoid throwing error while something is null
					frame?.contentWindow?.focus();
				}
			}, 32);
		}

		frame.contentWindow.GetParentResourceName = function()
		{
			return 