diff --git a/Gulpfile.js b/Gulpfile.js index bd360a9..23698ea 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -66,7 +66,8 @@ gulp.task('dist-node-modules', function () { 'node_modules/bootstrap/**/*', 'node_modules/angular/**/*', 'node_modules/jquery/**/*', - 'node_modules/lodash/**/*' + 'node_modules/lodash/**/*', + 'node_modules/ngstorage/**/*' ], {base: 'node_modules'}) .pipe(gulp.dest('tmp/vendor')); }); diff --git a/package.json b/package.json index e3522f1..05a3dde 100644 --- a/package.json +++ b/package.json @@ -23,20 +23,21 @@ }, "homepage": "https://github.com/nilsnh/tag-youre-it", "dependencies": { - "browser-sync": "^2.9.6", - "gulp": "^3.9.0", - "gulp-sourcemaps": "^1.6.0", "angular": "^1.4.7", "bootstrap": "^3.3.5", + "browser-sync": "^2.9.6", "del": "^2.0.2", + "gulp": "^3.9.0", "gulp-concat": "^2.6.0", "gulp-file-include": "^0.13.7", "gulp-flatten": "^0.2.0", "gulp-load-plugins": "^1.0.0", "gulp-ng-annotate": "^1.1.0", + "gulp-sourcemaps": "^1.6.0", "gulp-typescript": "^2.9.2", "jquery": "^2.1.4", "lodash": "^3.10.1", - "merge2": "^0.3.6" + "merge2": "^0.3.6", + "ngstorage": "^0.3.10" } } diff --git a/src/index.ts b/src/index.ts index db9685d..1fc267f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ module tagIt { - angular.module('tagit', []) + angular.module('tagit', ['ngStorage']) .config(AppConfigInitializer) .service('AppConfigService', AppConfigService) .service('BackendService', BackendService) diff --git a/src/load-menu-for-web-testing.js b/src/load-menu-for-web-testing.js index f1d2be4..d38ed0b 100644 --- a/src/load-menu-for-web-testing.js +++ b/src/load-menu-for-web-testing.js @@ -23,7 +23,12 @@ function injectScripts () { function loadAngular () { console.log('loading angular'); - loadScript('vendor/angular/angular.js', loadPluginCode); + loadScript('vendor/angular/angular.js', loadAngularDependency); + } + + function loadAngularDependency () { + console.log('loading angular'); + loadScript('vendor/ngstorage/ngStorage.js', loadPluginCode); } function loadPluginCode () { diff --git a/src/plugin-specific/popup.js b/src/plugin-specific/popup.js index d06ded0..a7eb909 100644 --- a/src/plugin-specific/popup.js +++ b/src/plugin-specific/popup.js @@ -25,6 +25,12 @@ function injectScripts () { function loadAngular () { chrome.tabs.executeScript(null, { file: 'vendor/angular/angular.js' + }, loadAngularDependency); + } + + function loadAngularDependency () { + chrome.tabs.executeScript(null, { + file: 'vendor/ngstorage/ngStorage.js' }, loadMainCode); }