Scientists have developed a facemask that can detect viral exposure within 10 minutes.