Coder Social home page Coder Social logo

Comments (5)

juberti avatar juberti commented on May 16, 2024

OK. @marwahvikas can help.

from samples.

fippo avatar fippo commented on May 16, 2024

style-question before I start: is there a preferred way we can share the error callbacks among all demos? I tend to just pass console.error there.

I'll try to ignore that createAnswer is sometimes not called from the setRemoteDescription success callback for now. Another (style) issue.

Otherwise this seems straightforward.

from samples.

samdutton avatar samdutton commented on May 16, 2024

is there a preferred way we can share the error callbacks among all demos? I tend to just pass console.error there.

Do you mean some error callback code to be used by all demos? Not at present. For the moment at least, I think it probably makes sense for individual demos to use their own handlers.

Whether to use the console or window.alert() (or both) depends on the context.

console.error is sensible for errors, though the existing demos use the plain old console.log. I've raised an issue to fix this: #130. On a tangent – the console API is quite powerful, and we should probably make more of it: https://developer.chrome.com/devtools/docs/console#using-the-console-api.

from samples.

fippo avatar fippo commented on May 16, 2024

@samdutton what I am worried about (long-term) is putting stuff in adapter.js that isn't shimming browser differences.

(see also the discussion in #74)

from samples.

fippo avatar fippo commented on May 16, 2024

nightly no longer insists since this is not possible to detect with the promise-based versions.

from samples.

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.