mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Remove ObjectController, Discouse Controllers + Presence
This commit is contained in:
parent
e2e3e7c0e0
commit
02a968bd27
130 changed files with 187 additions and 349 deletions
|
@ -1,3 +1,5 @@
|
|||
import { blank } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.Utilities");
|
||||
|
||||
var utils = Discourse.Utilities;
|
||||
|
@ -123,8 +125,8 @@ test("avatarUrl", function() {
|
|||
});
|
||||
|
||||
var setDevicePixelRatio = function(value) {
|
||||
if(Object.defineProperty) {
|
||||
Object.defineProperty(window, "devicePixelRatio", { value: 2 })
|
||||
if (Object.defineProperty && !window.hasOwnProperty('devicePixelRatio')) {
|
||||
Object.defineProperty(window, "devicePixelRatio", { value: 2 });
|
||||
} else {
|
||||
window.devicePixelRatio = value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue