You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2022/10/07 09:51:41 UTC

[myfaces-tobago] branch main updated: refactor(cleanup): remove unneeded code (#3333)

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/main by this push:
     new 242f945124 refactor(cleanup): remove unneeded code (#3333)
242f945124 is described below

commit 242f94512458161ee8c03c9b7be7b83e19b83695
Author: Udo Schnurpfeil <gi...@schnurpfeil.de>
AuthorDate: Fri Oct 7 11:51:36 2022 +0200

    refactor(cleanup): remove unneeded code (#3333)
    
    This code ist not needed for this faces.js (only for the old jsf.js)
---
 tobago-theme/copy-faces-js.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tobago-theme/copy-faces-js.js b/tobago-theme/copy-faces-js.js
index 9105d1b5d1..45eb323336 100644
--- a/tobago-theme/copy-faces-js.js
+++ b/tobago-theme/copy-faces-js.js
@@ -28,10 +28,7 @@ fs.readFile(sourceDir + jsFile, "utf8", function (e, data) {
     console.error(e);
   } else {
 
-    // This replace is, because the last line refers to a sourceMappingURL which is not available in Tobago.
-    // In Safari, with open Development Console, we got an 404.xhtml request otherwise (not shown in network section).
-
-    const result = data.replace(/\n\/\/# sourceMappingURL=jsf\.js\.map\.jsf\?ln=scripts/g, "");
+    const result = data;
 
     fs.writeFile(targetDir + jsFile, result, 'utf8', function (e) {
       if (e) {