Canvas-Designer icon indicating copy to clipboard operation
Canvas-Designer copied to clipboard

NS_Error_Failure

Open COM8 opened this issue 7 years ago • 0 comments

I'm allways getting the "NS_Error_Failure" error. After this error the created iFrame will stays like shown bellow:

Image

And this is the code I'm using to create a new instance.

var designer_div = document.getElementById('designer_div');
var designer = new CanvasDesigner();

//---------------------------------------------------------------Setup:---------------------------------------------------------------
designer.widgetURL = "https://cdn.webrtc-experiment.com/Canvas-Designer/widget.html";
designer.widgetJsURL = "https://cdn.webrtc-experiment.com/Canvas-Designer/widget.js";
designer.setSelected('pencil');

designer.setTools({
    pencil: true,
    text: true,
    image: true,
    eraser: true,
    line: true,
    arrow: true,
    dragSingle: true,
    dragMultiple: true,
    arc: true,
    rectangle: true,
    quadratic: true,
    bezier: true,
    marker: true,
		zoom: true
});

designer.appendTo(designer_div);

//---------------------------------------------------------------Events:--------------------------------------------------------------
connection.getSocket().on('designer-update', function(data) {
    designer.syncData(data);
});

designer.addSyncListener(function(data) {
    connection.getSocket().emit('designer-update', data);
});

//---------------------------------------------------------------Functions:-----------------------------------------------------------

COM8 avatar Mar 27 '17 12:03 COM8