GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.31k stars 309 forks source link

fix(carlo): encode external input in data: URI #83

Closed vsemozhetbyt closed 5 years ago

vsemozhetbyt commented 5 years ago
'use strict';

const carlo = require('carlo');

(async function main() {
  try {
    const app = await carlo.launch({ title: 'Carlo' });
    app.on('exit', () => process.exit());
  } catch (err) {
    console.error(err);
  }
})();

Before this change:

c1

After this change:

c2