TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Letaief Mohamed
NA
11
2.4k
How to show Angular project errors with a chrome extension
Mar 16 2020 2:39 PM
I want to handle angular errors and exceptions with chrome extension
Here my manifest.json
{
/* declared name , version , etc... */
"background"
: {
"scripts"
: [
"background.js"
] }
}
I have tried in two ways but it doesn't alert errors .
Here my background.js
> Method 1
window.onerror =
function
intercept (message, file, line, col, error) {
alert(
"Error occurred: "
+ message +
" in file "
+ file +
" at line "
+ line);
return
false
;
};
> Method 2
window.addEventListener(
'error'
,
function
(e) {
alert(
'handled uncaught error : '
, e); });
I know that i can implement ErrorHandler class but i want to do this suff with chrome extension
Please how to achieve that
Reply
Answers (
1
)
How to combine json's in angular 8
I want to formio File Component Json Schema