From 29a780ac6ae5b59db1aebf852fb6299ec0b49c7d Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 15 Mar 2024 14:14:20 -0400 Subject: [PATCH] - Added a new view --- asset/negundo/js/debug.js | 7 +++++-- meta/negundo.php | 12 ++++++------ view/negundo/client_bugs.phtml | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/asset/negundo/js/debug.js b/asset/negundo/js/debug.js index 29d9977..55f7775 100644 --- a/asset/negundo/js/debug.js +++ b/asset/negundo/js/debug.js @@ -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; } } diff --git a/meta/negundo.php b/meta/negundo.php index ee8f8f8..3401146 100644 --- a/meta/negundo.php +++ b/meta/negundo.php @@ -17,13 +17,13 @@ return [ 'path' => implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), "asset", '' ]), 'order' => 10 ], - 'view' => [ - [ - 'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]), - 'order' => 99, - ], + ], + 'view' => [ + [ + 'path' => implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), "view", '' ]), + 'order' => 99, ], - ] + ], ], ], ]; diff --git a/view/negundo/client_bugs.phtml b/view/negundo/client_bugs.phtml index 8f1ba3a..643f144 100644 --- a/view/negundo/client_bugs.phtml +++ b/view/negundo/client_bugs.phtml @@ -2,7 +2,7 @@ \ No newline at end of file