Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing script sources inside <head /> in the new window #69

Open
ptt-bs23 opened this issue Jun 30, 2020 · 0 comments
Open

Missing script sources inside <head /> in the new window #69

ptt-bs23 opened this issue Jun 30, 2020 · 0 comments
Assignees

Comments

@ptt-bs23
Copy link

ptt-bs23 commented Jun 30, 2020

I have a custom component (a DICOM Viewer) which I am trying to open in a new window. After integrating the module with my code, I found that my component is showing partially and partially broken. After checking the console error, I noticed that the new window doesn't have the source files, which I have in my main window and the errors are related. I have looked up for this solution but didn't get any.

Here is my code chunk

{this.state.dwvModalIsOpen ? (
    <NewWindow>
		<div>
			<DwvComponent fileURL={xrayUrl} />
		</div>
    </NewWindow>
) : ('')}

The source missing in the header of the new window:

<script src="https://unpkg.com/[email protected]/konva.js"></script>
   <script src="https://unpkg.com/magic-wand-tool@latest/dist/magic-wand.min.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/src/gui/style.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/src/gui/layer.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/src/gui/generic.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/dist/dwv.min.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/decoders/dwv/decode-rle.js"></script>
  <script type="text/javascript" src="https://raw.githubusercontent.com/ivmartel/dwv/develop/decoders/dwv/rle.js"></script>
  <script type="text/javascript" src="/dwv/dist/dwv.min.js"></script>
@rmariuzzo rmariuzzo self-assigned this Nov 27, 2022
@rmariuzzo rmariuzzo changed the title Missing source inside header in the new window Missing script sources inside <head /> in the new window Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants