Add try-catch clause

Okay, this doesn't work.
The error message is as follows
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://wzhd.gitcafe.com') does not match the recipient window's origin ('http://home.ustc.edu.cn').