Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 0d1fca7

Browse files
committed
DEV: Refactor ad plugin initializer
Reordered imports for clarity and removed outdated plugin API version constraints to streamline initialization logic.
1 parent 5445dab commit 0d1fca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/javascripts/discourse/initializers/initialize-ad-plugin.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { hbs } from "ember-cli-htmlbars";
2+
import { withSilencedDeprecations } from "discourse/lib/deprecated";
23
import { withPluginApi } from "discourse/lib/plugin-api";
34
import Site from "discourse/models/site";
45
import { registerWidgetShim } from "discourse/widgets/render-glimmer";
5-
import { withSilencedDeprecations } from "discourse/lib/deprecated";
66
import PostBottomAd from "../components/post-bottom-ad";
77

88
export default {
99
name: "initialize-ad-plugin",
1010
initialize(container) {
11-
withPluginApi("0.1", (api) => {
11+
withPluginApi((api) => {
1212
customizePost(api);
1313
});
1414

0 commit comments

Comments
 (0)