File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,8 @@ def get_config():
8888 stash = get_stash_client ()
8989
9090 config .PLUGIN_DIR = config .FRAGMENT ["server_connection" ]['PluginDir' ]
91- config .PLUGIN_HTTP_ASSETS_PATH = stash .url .replace ('/graphql' ,
92- '/plugin/StashInteractiveTools/assets' ).replace (
93- "127.0.0.1" , config .FRAGMENT ["args" ].get ("hostname" , '127.0.0.1' ))
91+ origin = config .FRAGMENT ["args" ].get ("origin" , stash .url .replace ('/graphql' , '' ))
92+ config .PLUGIN_HTTP_ASSETS_PATH = f'{ origin } /plugin/StashInteractiveTools/assets'
9493
9594 c = stash .find_plugin_config (config .ID )
9695 config .ENABLE_TAGGING = bool (c .get ('enable_tagging' ))
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ const InteractiveTools = ({ scene }: SceneFileInfoPanelProps) => {
151151 args : {
152152 mode : 'init' ,
153153 scene_id : scene . id ,
154- hostname : window . location . hostname ,
154+ origin : window . location . origin ,
155155 } ,
156156 } ,
157157 } ) . catch ( console . error ) ;
You can’t perform that action at this time.
0 commit comments