Comparing version 0.24.0 to 0.24.1
{ | ||
"name": "tify", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "TIFY is a slim and mobile-friendly IIIF document viewer.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/tify-iiif-viewer/tify", |
<p> | ||
<a href="https://github.com/tify-iiif-viewer/tify"> | ||
<img src="https://demo.tify.rocks/static/tify-logo.svg" alt="TIFY" width="148" height="60"> | ||
<img src="https://demo.tify.rocks/public/tify-logo.svg" alt="TIFY" width="148" height="60"> | ||
</a> | ||
@@ -5,0 +5,0 @@ </p> |
@@ -61,6 +61,11 @@ import Vue from 'vue'; | ||
// TODO: We cannot be sure that TIFY was loaded in a script tag, add a base option | ||
let base; | ||
let stylesheetUrl; | ||
if (process.env.NODE_ENV === 'production') { | ||
stylesheetUrl = '/tify.css'; | ||
const scripts = document.getElementsByTagName('script'); | ||
const scriptUrl = scripts[scripts.length - 1]; | ||
base = scriptUrl.src.substring(0, scriptUrl.src.lastIndexOf('/')); | ||
stylesheetUrl = `${base}/tify.css`; | ||
} else { | ||
base = 'public'; | ||
stylesheetUrl = null; | ||
@@ -67,0 +72,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1715969
23876
1