Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

SpectorJS doesnt work with examples #86

Open
ivanpopelyshev opened this issue Jan 21, 2020 · 2 comments
Open

SpectorJS doesnt work with examples #86

ivanpopelyshev opened this issue Jan 21, 2020 · 2 comments

Comments

@ivanpopelyshev
Copy link
Contributor

Subj. Because we use iframe, spector doesnt detect the canvas. Maybe there's a way to fight that.

@jonlepage
Copy link

jonlepage commented Jan 26, 2020

You can maybe add a special button open for spector
and then call new window without iframe? something like

  const newWindow = window.open('', 'spectorJsFrame', 'height=300,width=300');
  newWindow.document.write(html);

or

  const newWin = window.open('','windowName','height=300,width=300');
  newWin.document.appendChild(canvas)

or just link url ?

window.open(frameDoc.document.URL,'windowName','height=300,width=300');

frameDoc.close();

maybe ! no tested sorry, but you can maybe get inspiration from here.

@ivanpopelyshev
Copy link
Contributor Author

Good idea!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants