Avoid runtime error when window.reload is not available.
appWindow object doesn't have reload() method ready until the window is loaded. This is a quick fix to avoid crashing the background script by user operation. Test: manually verified as noted in the bug Bug: 789226 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ie2266792d8ca62bd0bae74ff2824b72221acbdb7 Reviewed-on: https://chromium-review.googlesource.com/800910Reviewed-by:Yoshiki Iguchi <yoshiki@chromium.org> Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org> Cr-Commit-Position: refs/heads/master@{#522000}
Showing
Please register or sign in to comment