COMPATIBILITY: Update `site` and `siteSettings` references (#18)

This commit is contained in:
Keegan George 2022-08-12 12:09:39 -07:00 committed by GitHub
parent 9abd57e5b5
commit 52b69453ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -10,9 +10,10 @@ import Session from "discourse/models/session";
import loadScript from "discourse/lib/load-script";
import PrettyText, { buildOptions } from "pretty-text/pretty-text";
import { tokenRange } from "../discourse-table-builder/lib/utilities";
export default apiInitializer("0.11.1", (api) => {
const site = api.container.lookup("site:main"),
siteSettings = api.container.lookup("site-settings:main");
const site = api.container.lookup("service:site");
const siteSettings = api.container.lookup("service:site-settings");
function createButton() {
const openPopupBtn = document.createElement("button");