Import getURL to fix deprecation warnings (#52)

This commit is contained in:
Mark VanLandingham 2020-10-06 20:58:52 -05:00 committed by GitHub
parent 386635d693
commit d643cf742e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { ajax } from "discourse/lib/ajax";
import getURL from "discourse-common/lib/get-url";
import Badge from "discourse/models/badge";
import { default as computed } from "discourse-common/utils/decorators";
import getURL from "discourse-common/lib/get-url";
function randomIdShort() {
return "xxxxxxxx".replace(/[xy]/g, () => {

View File

@ -5,6 +5,7 @@ import {
} from "discourse-common/utils/decorators";
import getURL from "discourse-common/lib/get-url";
import RestModel from "discourse/models/rest";
import getURL from "discourse-common/lib/get-url";
const Query = RestModel.extend({
dirty: false,