[gnome-maps/wip/mlundblad/es6-modules: 8/28] scripts/extractPoiTypesFromID: Use ES6 modules




commit c7d67d5bc48ff331f338ae8adb9135ce0df569dc
Author: Marcus Lundblad <ml dfupdate se>
Date:   Sun May 22 22:03:39 2022 +0200

    scripts/extractPoiTypesFromID: Use ES6 modules

 scripts/extractPoiTypesFromID.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/extractPoiTypesFromID.js b/scripts/extractPoiTypesFromID.js
index 031e9aed..4ef45fb4 100755
--- a/scripts/extractPoiTypesFromID.js
+++ b/scripts/extractPoiTypesFromID.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env gjs
+#!/usr/bin/env -S gjs -m
 
 /* -*- Mode: JS2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- */
 /* vim: set et ts=4 sw=4: */
@@ -29,7 +29,7 @@
  *
  */
 
-const Gio = imports.gi.Gio;
+import Gio from 'gi://Gio';
 
 const ByteArray = imports.byteArray;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]