X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fmonitoring%2FAFB.js;h=30fb9826ddedc634b8ea1edb1eaf8dec01450ef0;hb=4d0e21f182078923c318bf15397fe4c980989aea;hp=88da4d55c9a9a31d627404c65507e1b0c7630837;hpb=99f9504a15ff302c4aa6842ad2f5095263c23c3f;p=src%2Fapp-framework-binder.git diff --git a/test/monitoring/AFB.js b/test/monitoring/AFB.js index 88da4d55..30fb9826 100644 --- a/test/monitoring/AFB.js +++ b/test/monitoring/AFB.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author: José Bollo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ AFB = function(base, initialtoken){ if (typeof base != "object") @@ -5,7 +21,7 @@ if (typeof base != "object") var initial = { base: base.base || "api", - token: base.token || "hello", + token: base.token || initialtoken || "hello", host: base.host || window.location.host, url: base.url || undefined };