Git Product home page Git Product logo

Comments (4)

samarsault avatar samarsault commented on September 24, 2024

@cgaube thanks for reporting this. This is happening because btoa doesn't support unicode characters, which bootstrap seems to be using. We're looking into this and will get back to you soon.

from cli.

cgaube avatar cgaube commented on September 24, 2024

Thanks @samarsault Looking forward to that

I did some testing around and removing the call to btoa seem to make everything work for me.
I must be missing some context but I am not sure why this data has to be base64 for it to work

let content = data;

from cli.

samarsault avatar samarsault commented on September 24, 2024

Are you using bootstrap with adoptedStylesheets? We use btoa to create a serialized resource at our server for an adoptedStylesheet, and the server expects a byte data buffer.

from cli.

cgaube avatar cgaube commented on September 24, 2024

We are using Lit to create web components and for styles they tell us to do this https://lit.dev/docs/components/styles/

I believe their css function does use adoptedStylesheet under the hood
https://github.com/lit/lit/blob/c10df5d71ed08e4834959fe1ed9e865f13c0e31b/packages/reactive-element/src/css-tag.ts#L11

Thank you

from cli.

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.