@Nimesh wrote:
Hi Team,
I have google chrome extension which has content script as go-debug.js. I want to get diagram object from div so I have called below api in content.
go.Diagram.fromDiv(myDivObject which contains canvas)
It returns null with no exception; If I call same inside page dom context (or with debug console window) -- It returns correct diagram object.
I have include go-debug.js in chrome extension and I saw go namespace is there in content script dom context.
Looking forward your help or suggestion to resolve this problem.
Posts: 5
Participants: 2