in Education by
I am looking to deny the use of IE for my reactjs application ... At the moment here is my App.js ... So i want to throw an error saying (IE is not allowed please use Chrome) Any help greatly appreciated please import React, { Component } from 'react'; import './App.css'; import { BrowserRouter as Router, Route, Link, Switch, Redirect } from 'react-router-dom'; class App extends Component { render() { return (
); } } export default App; JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
This code will detect IE without worrying about someone messing with the UserAgent string: if (window.MSCompatibleInfo != null) { alert('IE is not allowed please use Chrome!"). throw new Error('IE is not allowed please use Chrome!'); } The throw is to stop anything else from running

Related questions

0 votes
    I am looking to deny the use of IE for my reactjs application ... At the moment here is my App. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am new to React but I know main concept of unique key. However, I am getting a warning. Below ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    I am trying to calculate the progress of a file upload, so I was using Superagent. I was able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    I am trying to write some stuff in a file using reactJS and nodeJs but it doesnt work. Here is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am trying to write some stuff in a file using reactJS and nodeJs but it doesnt work. Here is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    There is one issue with the angular material with IE-11 and IE-edge browsers, When the body content ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    (FWIW, I've posted this question to my blog as well: http://blog.wolffmyren.com/2011/07/11/ie- ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    There is a clock which shows false timing ie it shows 20 minutes less for each 1 hour. If the clock shows 12 noon now how ... ) 36 minutes B) 48 minutes C) 35 minutes D) 60 minutes...
asked Feb 14, 2021 in Education by JackTerrance
0 votes
    IR (information Retrieval) and IE (Information Extraction) are the two same thing. (a) True (b) False ... and Acting of Artificial Intelligence Please answer the above question....
asked Oct 9, 2022 in Education by JackTerrance
0 votes
    IR (information Retrieval) and IE (Information Extraction) are the two same thing. (a) True (b) False ... and Acting of Artificial Intelligence Please answer the above question....
asked Oct 2, 2022 in Education by JackTerrance
0 votes
    I am trying to input text into the text box in 'www.google.com' and though it says the text ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    I just got updated to Windows 10 (x64). My old desktop had IE 11 but a lower version, as it was ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
...