question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add check if app is running in third- or first-party environment

See original GitHub issue

Tried embedding excalidraw inside an frame and file loading and saving started throwing an error in Chrome but works on firefox.

Failed to execute 'showOpenFilePicker' on 'Window': Cross origin sub frames aren't allowed to show a file picker.

On further inspection, it looks like the underlying error is because of using showOpenFilePicker being used by this library.

Tried to repro on codesandbox here - https://codesandbox.io/s/exciting-hertz-jzjeg?file=/src/index.js (works on firefox but not on chrome)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Pet3riscommented, Mar 30, 2021

Thanks @apnerve, was able to reproduce and now integrated directories/files fully in the app 😃.

@tomayac nothing wrong with it whatsoever, just when I see a simple example not working in CodeSandbox that’s usually a good prompt to improve my understanding of a dependency, so I start there first.

Thanks both for your help!

1reaction
apnervecommented, Mar 29, 2021

Yeah the Excalidraw example works well across all browsers for me, very weird that the CodeBrowser example doesn’t work at all. I tried to click on the window as instructed but that just serves to trigger the respective errors unfortunately.

I’m planning to use the library for an app so wanted to just have a minimal reproducible example of how to use it and what the return values look like, may have to just start building the functionality directly.

In case you meant the example I added in the issue, it doesn’t take into account the click and hence doesn’t work. Have bumped the version to ^0.16.0 and added a click handler and it works fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control which third-party & internal apps access Google ...
In App access control, click Manage Third-Party App Access. For Configured apps, click Add app. Choose OAuth App Name or Client ID, Android,...
Read more >
First-Party and Third-Party Applications - Auth0
Applications can be classified as either first-party or third-party, which refers to the ownership of the application. The main difference relates to who ......
Read more >
First-Party Data, Second-Party Data, and Third-Party Data
First -party data is the information you collect directly from your audience or customers. The first-party definition includes: Data from ...
Read more >
Manage app setup policies in Microsoft Teams
Pin apps · Sign in to Teams admin center and access Teams apps > Setup policies. · Select Add. · Enter a name...
Read more >
What is First Party Data? | Using 1st Party Data for Marketing
Example: The company can use first-party data including web or mobile app behavior, in-store or call center interactions, purchase history, and loyalty status ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found