fix: check if window.outerWidth is supported