summaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-10-23 09:44:29 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commit33702aea7ce42c8240e4bed7b424cc8ac4a33826 (patch)
tree6bba05249b6830fa6cdaea1bbd88971e8e027634 /src/index.js
parent00b8929291665238cbcd88676fe65f67900be1c3 (diff)
FUNCT Implement bluetooth screen
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js
index ded8fe7..efdafaa 100644
--- a/src/index.js
+++ b/src/index.js
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
/* JS */
-import './js/AFB.js';
+import { init } from './js/app';
+import { toggle as toggle_bluetooth } from './js/bluetooth';
/* CSS */
import './styles/app.scss';
@@ -28,4 +28,10 @@ window.show = function(page){
window.hide = function(page) {
document.getElementById('main').classList.remove('hide');
document.getElementById(page).classList.add('hide');
-} \ No newline at end of file
+}
+
+window.toggle_bluetooth = function() {
+ toggle_bluetooth();
+}
+
+init(); \ No newline at end of file