GithubHelp home page GithubHelp logo

Comments (5)

trogper avatar trogper commented on July 19, 2024 7

@alexellis actually I'm not a contibutor, I have just found this project yesterday

from carlo.

trogper avatar trogper commented on July 19, 2024 1

Or even better add this bit of code to line 181 of carlo.js

  if (options.allowInsecureContent)
    args.push(`--allow-running-insecure-content`);

then you can do this carlo.launch({allowInsecureContent: true});

from carlo.

trogper avatar trogper commented on July 19, 2024

you can modify arguments that carlo passes to chrome to include --allow-running-insecure-content
beggining on line 176 of carlo.js

  const args = [
      `--app=data:text/html,<style>html{background:${bgcolorHex};}</style>`,
      `--enable-features=NetworkService`,
      `--allow-running-insecure-content`,
  ];

from carlo.

alexellis avatar alexellis commented on July 19, 2024

Brilliant, thanks for getting back so quickly.

from carlo.

tw1nk avatar tw1nk commented on July 19, 2024

It's possible to do this if you launch your carlo instance with:

const app = await carlo.launch(
      {
        bgcolor: '#2b2e3b',
        width: 1000,
        height: 500,
        userDataDir: path.join(os.homedir(), '.carlosysinfo'),
        args: ['--allow-running-insecure-content']
      });

from carlo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.