Giter Site home page Giter Site logo

irma_js's People

Contributors

aykevl avatar confiks avatar davidv1992 avatar fvdbroek avatar sietseringers avatar wouterl avatar woutslakhorst avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

irma_js's Issues

IRMA is not defined

Hey there im trying to get the example given in the README working but I get the following error:

Uncaught ReferenceError: IRMA is not defined
    at init (verify.js:21)
    at HTMLDocument.<anonymous> (verify.js:49)
    at mightThrow (jquery.js:3534)
    at process (jquery.js:3602)

So I tried to import it with import * as IRMA from "./client/irma";. This however made it so I cant call on the clicked method:

index.html:10 Uncaught ReferenceError: isclicked is not defined
    at HTMLButtonElement.onclick (index.html:10)

I also get the following error:

Uncaught SyntaxError: Unexpected token export

Any help?

Opening the Irma app on IOS from '_blank' removes the original webpage

Open a link on an iPhone to a new page targeted as '_blank', when you issue a Irma session from this page the js changes the window location to irma://. This makes IOS 'replace' the content of this _blank page with the Irma app. The _blank page is then gone and with it the page you logged into. If you open a link manually to the same page everything is fine.

The problem is at:

https://github.com/privacybydesign/irma_js/blob/6747669b2ed50e0d8ad8198b1914b458abfec2cf/client/irma.js#L590

A fix can be to change it to open a new window before any async call with window.open() and store the windowReference in a global var. Then in the callback set the location of the windowReference to the irma:// location.

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.