- Added a new view

This commit is contained in:
Dave M. 2024-03-15 14:14:20 -04:00
parent e85925ace7
commit 29a780ac6a
3 changed files with 12 additions and 9 deletions

View File

@ -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;
} }
} }

View File

@ -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", '' ]), [
'order' => 99, 'path' => implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), "view", '' ]),
], 'order' => 99,
], ],
] ],
], ],
], ],
]; ];

View File

@ -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>