summaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
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