Skip to content

console.log command missing #18

Open

Description

@marco-faustinelli

There should be a way to print stuff on the sandbox screen. I understand that console.log belongs to the browser console, but something like sandbox.log should be available.

Activity

  1. DanWilkerson commented on Dec 23, 2016

    @DanWilkerson

    It's a hack, but if you're using an iframe, you can do this:

      window.sandbox.model.sandbox.console = { 
        log: function(msg) {
    
          console.log(msg);
          return msg;
    
        }   
      }; 
    

    [Edit:] The above fails when an async call is involved, unfortunately.. If I come up with a fix, I'll update here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions