Added trailers. Improved scene page scaling.
This commit is contained in:
@@ -4,12 +4,20 @@
|
||||
import { inject } from 'vue';
|
||||
|
||||
const key = Symbol(); // eslint-disable-line symbol-description
|
||||
let localPageContext = null; // eslint-disable-line import/no-mutable-exports
|
||||
|
||||
export function usePageContext() {
|
||||
const pageContext = inject(key);
|
||||
return pageContext;
|
||||
}
|
||||
|
||||
export function getPageContext() {
|
||||
return localPageContext;
|
||||
}
|
||||
|
||||
export function setPageContext(app, pageContext) {
|
||||
localPageContext = pageContext;
|
||||
app.provide(key, pageContext);
|
||||
}
|
||||
|
||||
export { localPageContext as pageContext };
|
||||
|
||||
Reference in New Issue
Block a user