Ellpeck / ObsidianCustomFrames

An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.
MIT License
548 stars 29 forks source link

Rstudio Server- Cannot Read Property "desktopInfo" of Null #72

Open Microbion opened 1 year ago

Microbion commented 1 year ago

Hi, I meet the similar trouble as described in #21 . My obsidian version is v0.15.9, and custom frames is 2.4.4 . Although we use different version and rstudio, the error is the same. Here's the dev tool console's output: image When I set on "Force iframe" mode, I can't open dev tools. When I try to login in "Force iframe" mode, I get the error: "Error: Temporary server error, please try again". image

Microbion commented 1 year ago

Well, it seems that rstudio's reason https://docs.rstudio.com/ide/server-pro/latest/tutorial_api/configuration.html#allow-iframe.

Microbion commented 1 year ago

In my opinion, rstudio enabled load inside a brower frame (such as iframe) for security reasons. This causes problems in "Fore iframe" mode. Here's the issue talking about this https://github.com/rstudio/rstudio/issues/12197. In addition, rstudio server couldn't suite for all kinds of browsers, for example, QtWebEngine-based browsers, such as qutebrowser or KDE Falkon. Maybe this causes problems in normal mode. Here's the issue https://github.com/rstudio/rstudio/issues/12406