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