Skip to content

Display or not the QR code #10

@borishalleux

Description

@borishalleux

Hello,
One feature that I would find interesting is the ability to display or not the QR code.
I tried so and it works fine:

In MMM-WiFiPassword.js:

  • Add the variable: 'showQR: true'
  • Modification of the following code:
if (this.config.showQR) {
	  var qrDiv = document.createElement("div");
	  qrDiv.id = "qrdiv";
	  qrDiv.className = "qr-image";
	  qrDiv.style = "width:" + this.config.qrSize + "px; background-color:" + this.config.colorLight;
	  if (this.config.layoutVertical) {
		qrDiv.className += " layout-vertical";
	  } else {
		qrDiv.className += " layout-horizontal";
	  }  
	  div.appendChild(qrDiv);
	  }

So we only keep the text, which is sometimes enough.

FR / EN translation by Google, sorry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions