COMPATIBILITY: Update `site` and `siteSettings` references (#18)
This commit is contained in:
parent
9abd57e5b5
commit
52b69453ba
|
@ -10,9 +10,10 @@ import Session from "discourse/models/session";
|
||||||
import loadScript from "discourse/lib/load-script";
|
import loadScript from "discourse/lib/load-script";
|
||||||
import PrettyText, { buildOptions } from "pretty-text/pretty-text";
|
import PrettyText, { buildOptions } from "pretty-text/pretty-text";
|
||||||
import { tokenRange } from "../discourse-table-builder/lib/utilities";
|
import { tokenRange } from "../discourse-table-builder/lib/utilities";
|
||||||
|
|
||||||
export default apiInitializer("0.11.1", (api) => {
|
export default apiInitializer("0.11.1", (api) => {
|
||||||
const site = api.container.lookup("site:main"),
|
const site = api.container.lookup("service:site");
|
||||||
siteSettings = api.container.lookup("site-settings:main");
|
const siteSettings = api.container.lookup("service:site-settings");
|
||||||
|
|
||||||
function createButton() {
|
function createButton() {
|
||||||
const openPopupBtn = document.createElement("button");
|
const openPopupBtn = document.createElement("button");
|
||||||
|
|
Loading…
Reference in New Issue