You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/12 09:03:36 UTC

[GitHub] [cordova-electron] erisu commented on a change in pull request #154: feature: support custom scheme & hostname

erisu commented on a change in pull request #154:
URL: https://github.com/apache/cordova-electron/pull/154#discussion_r439299290



##########
File path: bin/templates/platform_www/cdv-electron-main.js
##########
@@ -62,10 +89,27 @@ function createWindow () {
     });
 }
 
+function configureProtocol () {
+    protocol.registerFileProtocol(scheme, (request, _cb) => {

Review comment:
       I prefix it to avoid the lint error
   
   > error  Unexpected literal in error position of callback  `standard/no-callback-literal`
   
   I could maybe disabled `no-callback-literal` with
   
   ```
   // eslint-disable-line no-callback-literal
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org