From b228da34a56fd3bc0fee141a4cd54a0e8e9b85eb Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Sun, 18 May 2014 20:43:27 -0700 Subject: [PATCH] slight DRY --- examples/editModels.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/editModels.js b/examples/editModels.js index 35e9f40468..a73cf72987 100644 --- a/examples/editModels.js +++ b/examples/editModels.js @@ -161,8 +161,7 @@ function controller(wichSide) { this.checkModel = function (properties) { // special case to lock the ground plane model in hq. - if (location.hostname == "hq.highfidelity.io" && - properties.modelURL == "https://s3-us-west-1.amazonaws.com/highfidelity-public/ozan/Terrain_Reduce_forAlpha.fbx") { + if (this.isLocked(properties)) { return { valid: false }; }