- Added a new view
This commit is contained in:
parent
e85925ace7
commit
29a780ac6a
|
@ -22,6 +22,9 @@ class ErrorHandler
|
|||
}
|
||||
|
||||
catchError() {
|
||||
|
||||
console.log(this.url);
|
||||
|
||||
window.onerror = function(message, url, line, column, error) {
|
||||
// build l'url ET l'api key ensemble pour créer l'URL de réception de bug
|
||||
|
||||
|
@ -57,10 +60,10 @@ class ErrorHandler
|
|||
}
|
||||
|
||||
get apikey() {
|
||||
return this._url;
|
||||
return this._apikey;
|
||||
}
|
||||
|
||||
set apikey(set) {
|
||||
return this._url = set;
|
||||
return this._apikey = set;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,13 +17,13 @@ return [
|
|||
'path' => implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), "asset", '' ]),
|
||||
'order' => 10
|
||||
],
|
||||
],
|
||||
'view' => [
|
||||
[
|
||||
'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
|
||||
'path' => implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), "view", '' ]),
|
||||
'order' => 99,
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<script>
|
||||
new ErrorHandler({
|
||||
url: "{{ getenv('NEGUNDO_SERVER') }}/client/report",
|
||||
url: "{{ getenv('NEGUNDO_SERVER') }}/bug/client/report",
|
||||
apikey: "{{ getenv('NEGUNDO_HASH') }}"
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue