From f0acd9e4057f88ff23debcf8d128abe12718e2c1 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 25 Dec 2014 11:32:35 +0000 Subject: [PATCH] Use relative scheme for google maps API Fixes #1 --- Plugin.php | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin.php b/Plugin.php index ad0d01d..91df3ed 100644 --- a/Plugin.php +++ b/Plugin.php @@ -141,7 +141,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi */ public static function getVersion() { - return '1.0.0'; + return '1.0.1'; } /** @@ -164,7 +164,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi throw new \RuntimeException('Google API key cannot be empty'); } - return 'http://maps.googleapis.com/maps/api/js?key=' + return '//maps.googleapis.com/maps/api/js?key=' . $this->config['api_key'] . '&sensor=false'; } diff --git a/package.json b/package.json index 31c7542..ab848a2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.0.1", "devDependencies": { "bower": "~1.3.12", "gulp": "~3.8.10",