content/hifi-content/robin/dev/domains/faceToFace/signupApp/addSignupApp.js
2022-02-14 02:04:11 +01:00

26 lines
935 B
JavaScript

// addSignupApp.js
//
// Loads the signup app on to a user's device while they are in the vicinity
// Modified by Robin Wilson 7/27/2018
// Created by Liv Erickson 6/18/2018
//
// Copyright 2018 High Fidelity Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
(function(){
var HAS_SIGNUP_APP_SETTING = 'io.highfidelity.signupApp.appPresent';
var SignupApp = function() {};
SignupApp.prototype = {
preload: function(entityID) {
if (!Settings.getValue(HAS_SIGNUP_APP_SETTING)) {
Script.require('https://hifi-content.s3.amazonaws.com/robin/dev/domains/faceToFace/signupApp/eventBriteSignUp.js');
}
},
unload: function() {
Settings.setValue(HAS_SIGNUP_APP_SETTING, false);
}
};
return new SignupApp();
});