Merge branch 'imjoy-support' of gitlab.com:rwb27/openflexure-microscope-server into imjoy-support
This commit is contained in:
commit
757ee216cf
1 changed files with 6 additions and 0 deletions
|
|
@ -128,6 +128,12 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
const self = this;
|
const self = this;
|
||||||
const imjoy = new imjoyCore.ImJoy({
|
const imjoy = new imjoyCore.ImJoy({
|
||||||
|
// We will load the ImJoy plugin base frame via http (instead of https)
|
||||||
|
// such that imjoy plugins can access insecured urls
|
||||||
|
// however, some browser features won't work (e.g. webrtc)
|
||||||
|
// unless we explicitly set `base_frame` in the plugin to
|
||||||
|
// https://lib.imjoy.io/default_base_frame.html
|
||||||
|
default_base_frame: 'http://lib.imjoy.io/default_base_frame.html',
|
||||||
imjoy_api: {
|
imjoy_api: {
|
||||||
async showDialog(plugin, config, exta_config) {
|
async showDialog(plugin, config, exta_config) {
|
||||||
return await imjoy.pm.createWindow(plugin, config, exta_config);
|
return await imjoy.pm.createWindow(plugin, config, exta_config);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue