Changed postMessage to localStorage to fix #8