An error has occurred

{{terminalError}}

function ignAddThemeClassToDocument(theme) { if (!theme) return; const classPrefix = 'ign-theme-'; const html = document.querySelector('html'); const classes = html.className.split(' '); for (let i = 0; i !== classes.length; i++) { if (classes[i].indexOf(classPrefix) === 0) { html.classList.remove(classes[i]); } } html.classList.add(classPrefix + theme); } const template = document.querySelector('.ign-base-template.ign-template'); const templateScope = angular.element(template).scope(); templateScope.$watch('custom.theme', (value) => ignAddThemeClassToDocument(value)); window.addEventListener('message', (event) => { if (event.data.theme) { templateScope.custom.theme = event.data.theme; } }); templateScope.ignHeader = `Want to Try Undying, the New Zombie, Survival-Horror Game?`; templateScope.actionButtonText = `Shop Now`; templateScope.actionButtonUrl = `https://www.ign.com/rewards/ign-plus-games-undying?utm_source=piano`; templateScope.ignSubTitle = ``; templateScope.ignImage = `https://assets-prd.ignimgs.com/2023/12/08/undying-2023-kv-16-9-1702061770960.png`; templateScope.ignText = `IGN is giving away free Undying game keys to Plus members. Grab your key now and check out this hotly-anticipated zombie adventure game.`; templateScope.compactActionButton = `false` === 'true'; const wideBreakPoint = 640; templateScope.ignIsWide = document.querySelector(".ign-base-template.ign-template").offsetWidth > wideBreakPoint; const resizeObserver = new ResizeObserver(function(entries) { const entry = entries[0]; if (!entry || !entry.contentRect) return; templateScope.ignIsWide = entry.contentRect.width > wideBreakPoint; }); resizeObserver.observe(document.querySelector(".ign-base-template.ign-template"));
{{ignHeader}}
{{ignSubTitle}}
{{ignText}}