Merge branch 'oeway-imjoy-support-patch-13914' into 'imjoy-support'

Allow insecure url in ImJoy plugins

See merge request rwb27/openflexure-microscope-server!2
This commit is contained in:
Richard Bowman 2021-04-22 20:28:18 +00:00
commit f44d76d9dd

View file

@ -122,6 +122,12 @@ export default {
mounted() {
const self = this;
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: {
async showDialog(plugin, config, exta_config) {
return await imjoy.pm.createWindow(plugin, config, exta_config);