That's assuming it's glass. Which it's probably not; it's silly to put a weak substance like that on the hull of a spaceship.
And where, exactly, do you get the idea that glass is "weak?"
First off, "glass" is a class of materials. Substitute "amorphous ceramic" for "glass," every time you read it, and you'll be closer to being on-target here.
The truth is that glass has a far higher tensile strength than most other materials. The fact that it's quite weak in flexure is a problem, certainly... that's why glass is seldom used BY ITSELF as a mechanical material.
But many, many real-world structures... from buildings to automobiles to aircraft structures... use "glass" as a structural component. It is not "weak."
It simply needs to be combined, in a composite structure, with other elements which compensate for its less robust characteristics. Which engineers regularly do.
Get this through your collective heads, folks... there's nothing STRUCTURALLY wrong with having windows in a ship... submarine, surface, land, air, or space.
The only real issue is "does it serve a function?"
And a "window" on the bridge of a starship serves no practical function whatsoever. You don't "drive the ship" by looking out the @#$*ing window!
"Windows" can serve a valuable psychological function for off-duty crew, but they serve no practical purpose relating to the function of the ship whatsoever.