Scientists and engineers have developed a reversible, on-the-spot, temperature-sensitive gel that could seal eye injuries on the battlefield.